SetCompositionParameters constructor

SetCompositionParameters({
  1. required int contextId,
  2. required String text,
  3. int? selectionStart,
  4. int? selectionEnd,
  5. required int cursor,
  6. List<SetCompositionParametersSegments>? segments,
})

Implementation

SetCompositionParameters({
  /// ID of the context where the composition text will be set
  required int contextId,

  /// Text to set
  required String text,

  /// Position in the text that the selection starts at.
  int? selectionStart,

  /// Position in the text that the selection ends at.
  int? selectionEnd,

  /// Position in the text of the cursor.
  required int cursor,

  /// List of segments and their associated types.
  List<SetCompositionParametersSegments>? segments,
}) : _wrapped = $js.SetCompositionParameters(
        contextID: contextId,
        text: text,
        selectionStart: selectionStart,
        selectionEnd: selectionEnd,
        cursor: cursor,
        segments: segments?.toJSArray((e) => e.toJS),
      );