LineBreak class Null safety
A text boundary that uses line breaks as logical boundaries.
The input TextPositions will be interpreted as caret locations if TextLayoutMetrics.getLineAtOffset is text-affinity-aware.
- Inheritance
-
- Object
- TextBoundary
- LineBreak
Constructors
- LineBreak(TextLayoutMetrics _textLayout)
-
Creates a LineBreak with the text and layout information.
const
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
getLeadingTextBoundaryAt(
TextPosition position) → TextPosition -
Returns the leading text boundary at the given location.
override
-
getTextBoundaryAt(
TextPosition position) → TextRange -
Gets the text boundary range that encloses the input position.
override
-
getTrailingTextBoundaryAt(
TextPosition position) → TextPosition -
Returns the trailing text boundary at the given location, exclusive.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator +(
TextBoundary other) → TextBoundary -
Gets the boundary by calling the left-hand side and pipe the result to
right-hand side.
inherited
-
operator ==(
Object other) → bool -
The equality operator.
inherited