showAutocorrectionPromptRect method Null safety

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

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.


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