selectWordAt method
Selects the word at globalPosition and shows the selection handles and
context toolbar — the programmatic equivalent of a native long-press at
that point.
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
word.
Implementation
void selectWordAt(Offset globalPosition) =>
_selectAt(globalPosition, TextGranularity.word);