PhysicalLine class
A single line in a PhysicalDocument.
Constructors
-
PhysicalLine({required List<
StyledText> segments}) -
Creates a PhysicalLine.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
segments
→ List<
StyledText> -
The styled segments that make up this line.
final
- visibleLength → int
-
Returns the total visible length of the line (excluding escape codes).
no setter
Methods
-
getVisibleLength(
{int startX = 0}) → int -
Calculates the visible length starting from
startX. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
releaseRecursive(
LogPipelineFactory factory) → void -
Releases the line back to the
factory. -
reset(
) → void - Resets the line for reuse in the arena.
-
toString(
) → String -
A string representation of this object.
override
-
truncate(
LogPipelineFactory factory, int targetWidth, {int startX = 0}) → PhysicalLine -
Returns a new PhysicalLine truncated to the
targetWidth.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override