setComposition method

Future<bool> setComposition(
  1. SetCompositionParameters parameters
)

Set the current composition. If this extension does not own the active IME, this fails. returns Resolves when the operation completes with a boolean indicating if the text was accepted or not. On failure, the promise will be rejected.

Implementation

Future<bool> setComposition(SetCompositionParameters parameters) async {
  var $res =
      await $js.chrome.input.ime.setComposition(parameters.toJS).toDart;
  return $res.toDart;
}