showAutocorrectionPromptRect method

  1. @override
void showAutocorrectionPromptRect(
  1. int start,
  2. int end
)
override

Requests that this client display a prompt rectangle for the given text range, to indicate the range of text that will be changed by a pending autocorrection.

This method will only be called on iOS.

Implementation

@override
void showAutocorrectionPromptRect(int start, int end) {
  setState(() {
    _currentPromptRectRange = TextRange(start: start, end: end);
  });
}