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

void setPromptRectRange(TextRange newRange) {
  if (_promptRectRange == newRange)
    return;

  _promptRectRange = newRange;
  markNeedsPaint();
}