LineMetricsHelper class

A helper class that holds important information about a single line metrics. This is used to calculate the position of the line in the paragraph.

Constructors

LineMetricsHelper(LineMetrics metrics, int length)
Creates a new line metrics helper

Properties

fullHeight double
The entire height of the line, including its y and padding
no setter
fullWidth double
The entire width of the line, including the padding and its x
no setter
hashCode int
The hash code for this object.
no setteroverride
height double
The raw height of the line, without any additional padding
no setter
isEmpty bool
Whether this line has no content
no setter
isFirst bool
Whether this line is the first line in the paragraph
no setter
isLast bool
Whether this line is the last line in the paragraph
no setter
length int
The amount of lines in the text.
final
metrics LineMetrics
The original line metrics, which stores the measurements and statistics of a single line in the paragraph.
final
rawWidth double
The raw width of the line, without any additional padding
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double
The entire width of the line, including the padding
no setter
x double
The x position of the line
no setter
y double
The y position of the line
no setter

Methods

innerRadius(double innerRadius) double
Dynamically calculate the inner factor based on the provided innerRadius
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
outerRadius(double outerRadius) double
Dynamically calculate the outer factor based on the provided outerRadius
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override