TextLayoutMetrics class Null safety

A read-only interface for accessing visual information about the implementing text.

Implementers

Constructors

TextLayoutMetrics()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 non-existent 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

isWhitespace(int codeUnit) bool
Check if the given code unit is a white space or separator character. [...]