Dart Documentationchrome.inputInputImeSetCompositionParams

InputImeSetCompositionParams class

class InputImeSetCompositionParams extends ChromeObject {
 InputImeSetCompositionParams({int contextID, String text, int selectionStart, int selectionEnd, int cursor, List<Map> segments}) {
   if (contextID != null) this.contextID = contextID;
   if (text != null) this.text = text;
   if (selectionStart != null) this.selectionStart = selectionStart;
   if (selectionEnd != null) this.selectionEnd = selectionEnd;
   if (cursor != null) this.cursor = cursor;
   if (segments != null) this.segments = segments;
 }
 InputImeSetCompositionParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * ID of the context where the composition text will be set
  */
 int get contextID => jsProxy['contextID'];
 set contextID(int value) => jsProxy['contextID'] = value;

 /**
  * Text to set
  */
 String get text => jsProxy['text'];
 set text(String value) => jsProxy['text'] = value;

 /**
  * Position in the text that the selection starts at.
  */
 int get selectionStart => jsProxy['selectionStart'];
 set selectionStart(int value) => jsProxy['selectionStart'] = value;

 /**
  * Position in the text that the selection ends at.
  */
 int get selectionEnd => jsProxy['selectionEnd'];
 set selectionEnd(int value) => jsProxy['selectionEnd'] = value;

 /**
  * Position in the text of the cursor.
  */
 int get cursor => jsProxy['cursor'];
 set cursor(int value) => jsProxy['cursor'] = value;

 /**
  * List of segments and their associated types.
  */
 List<Map> get segments => listify(jsProxy['segments'], mapify);
 set segments(List<Map> value) => jsProxy['segments'] = jsify(value);
}

Extends

ChromeObject > InputImeSetCompositionParams

Constructors

new InputImeSetCompositionParams({int contextID, String text, int selectionStart, int selectionEnd, int cursor, List<Map> segments}) #

Create a new instance of a ChromeObject, which creates and delegates to a JsObject proxy.

docs inherited from ChromeObject
InputImeSetCompositionParams({int contextID, String text, int selectionStart, int selectionEnd, int cursor, List<Map> segments}) {
 if (contextID != null) this.contextID = contextID;
 if (text != null) this.text = text;
 if (selectionStart != null) this.selectionStart = selectionStart;
 if (selectionEnd != null) this.selectionEnd = selectionEnd;
 if (cursor != null) this.cursor = cursor;
 if (segments != null) this.segments = segments;
}

new InputImeSetCompositionParams.fromProxy(JsObject jsProxy) #

Create a new instance of a ChromeObject, which delegates to the given JsObject proxy.

docs inherited from ChromeObject
InputImeSetCompositionParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

Properties

int contextID #

ID of the context where the composition text will be set

int get contextID => jsProxy['contextID'];
set contextID(int value) => jsProxy['contextID'] = value;

int cursor #

Position in the text of the cursor.

int get cursor => jsProxy['cursor'];
set cursor(int value) => jsProxy['cursor'] = value;

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

List<Map> segments #

List of segments and their associated types.

List<Map> get segments => listify(jsProxy['segments'], mapify);
set segments(List<Map> value) => jsProxy['segments'] = jsify(value);

int selectionEnd #

Position in the text that the selection ends at.

int get selectionEnd => jsProxy['selectionEnd'];
set selectionEnd(int value) => jsProxy['selectionEnd'] = value;

int selectionStart #

Position in the text that the selection starts at.

int get selectionStart => jsProxy['selectionStart'];
set selectionStart(int value) => jsProxy['selectionStart'] = value;

String text #

Text to set

String get text => jsProxy['text'];
set text(String value) => jsProxy['text'] = value;

Methods

JsObject toJs() #

inherited from ChromeObject
JsObject toJs() => jsProxy;

String toString() #

inherited from ChromeObject

Returns a string representation of this object.

docs inherited from Object
String toString() => jsProxy.toString();