LuckyTextMeasurer class abstract interface

测量单行文字宽度与字母基线,使用结束后须调用 dispose。

Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

baseline(TextStyle style) → double
返回 style 的行顶到字母基线的距离,单位为逻辑像素。
dispose() → void
释放测量资源。
measure(String text, TextStyle style) → double
返回 text 在 style 下的宽度,包含尾随空格。
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