// When this text input loses focus, the autocorrection highlight needs

// to be dismissed.

if

_hasFocus

setState

(()

_currentPromptRectRange

null

});

@override

void

showAutocorrectionPromptRect

int

start

int

end

// Updates the range of the highlight, as iOS requested.

// This method isn't called when iOS decides to

// dismiss the highlight.

setState

(()

_currentPromptRectRange

TextRange

start:

start

end:

end

);

});