selectParagraphAt method

void selectParagraphAt(
  1. Offset globalPosition
)

Selects the paragraph containing globalPosition and shows the selection handles and context toolbar.

Prefer this over selectAll when entering selection mode anchored on the user's press position (e.g. a long-press menu's "select text" action). See _selectAt for how the overlay is surfaced while narrowing to a paragraph.

Implementation

void selectParagraphAt(Offset globalPosition) =>
    _selectAt(globalPosition, TextGranularity.paragraph);