setPromptRectRange method

void setPromptRectRange(
  1. TextRange? newRange
)

Dismisses the currently displayed prompt rectangle and displays a new prompt rectangle over newRange in the given color promptRectColor.

The prompt rectangle will only be requested on non-web iOS applications.

When set to null, the currently displayed prompt rectangle (if any) will be dismissed.

Implementation

// ignore: use_setters_to_change_properties, (API predates enforcing the lint)
void setPromptRectRange(TextRange? newRange) {
  _autocorrectHighlightPainter.highlightedRange = newRange;
}