TxTextPage class
Manages the process of laying out and rasterizing text into pages (TxSpriteBlocks).
It works with any TextLayout to support different display shapes.
Constructors
- TxTextPage({required TextLayout layout, required String text})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasMoreText → bool
-
Returns true if there is more text to be laid out.
no setter
- layout → TextLayout
-
final
- remainingText → String
-
The portion of the text that has not yet been processed into a page.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
final
Methods
-
measureNextPage(
) → Future< PageData?> - Measures the next page of text and returns its data without rasterizing. This is useful for previewing content or getting layout information.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rasterizeNextPage(
) → Future< PageData?> - Measures and rasterizes the next page in one call.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited