getTextBoundaryAt method
- int position
override
Returns the text boundary range that encloses the input position.
The returned TextRange may contain -1
, which indicates no boundaries
can be found in that direction.
Implementation
@override
TextRange getTextBoundaryAt(int position) => _textLayout.getLineAtOffset(TextPosition(offset: max(position, 0)));