getPositionForOffset method Null safety
- Offset offset
Returns the position within the text for the given pixel offset.
Implementation
TextPosition getPositionForOffset(Offset offset) {
assert(_debugAssertTextLayoutIsValid);
return _paragraph!.getPositionForOffset(offset);
}