getLineBoundary method Null safety
- TextPosition position
Returns the text range of the line at the given offset.
The newline (if any) is not returned as part of the range.
Implementation
TextRange getLineBoundary(TextPosition position) {
assert(_debugAssertTextLayoutIsValid);
return _paragraph!.getLineBoundary(position);
}