SetCompositionParameters constructor
SetCompositionParameters({})
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),
);