CellMetrics class

Monospace cell metrics. Width is measured over many glyphs and divided, so sub-pixel advance is captured (fixes integer-rounding column drift).

Constructors

CellMetrics(double width, double height)

Properties

hashCode int
The hash code for this object.
no setterinherited
height double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double
final

Methods

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

measure(TextStyle style, {int sample = 20}) CellMetrics