onSurroundingTextChanged property

EventStream<OnSurroundingTextChangedEvent> get onSurroundingTextChanged

Called when the editable string around caret is changed or when the caret position is moved. The text length is limited to 100 characters for each back and forth direction.

Implementation

EventStream<OnSurroundingTextChangedEvent> get onSurroundingTextChanged =>
    $js.chrome.input.ime.onSurroundingTextChanged.asStream(($c) => (
          String engineID,
          $js.OnSurroundingTextChangedSurroundingInfo surroundingInfo,
        ) {
          return $c(OnSurroundingTextChangedEvent(
            engineId: engineID,
            surroundingInfo: OnSurroundingTextChangedSurroundingInfo.fromJS(
                surroundingInfo),
          ));
        });