TextLayoutMetrics class abstract
A read-only interface for accessing visual information about the implementing text.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getLineAtOffset(
TextPosition position) → TextSelection - Return a TextSelection containing the line of the given TextPosition.
-
getTextPositionAbove(
TextPosition position) → TextPosition - Returns the TextPosition above the given offset into the text.
-
getTextPositionBelow(
TextPosition position) → TextPosition - Returns the TextPosition below the given offset into the text.
-
getWordBoundary(
TextPosition position) → TextRange - Returns the text range of the word at the given offset. Characters not part of a word, such as spaces, symbols, and punctuation, have word breaks on both sides. In such cases, this method will return a text range that contains the given text position.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
isLineTerminator(
int codeUnit) → bool - Check if the given code unit is a line terminator character.
-
isWhitespace(
int codeUnit) → bool - Check if the given code unit is a white space or separator character.