TextMeasureHelper class

文案高度测量辅助类

Constructors

TextMeasureHelper()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

buildWidgetSpanPlaceHolder(InlineSpan span, {List<PlaceholderDimensions> values}) List<PlaceholderDimensions>
查找span中WidgetSpan的数量
computeWidgetSpanWidth(InlineSpan span, {double width}) double
measure({InlineSpan span, double minWidth, double maxWidth, TextAlign textAlign = TextAlign.start, TextDirection textDirection = TextDirection.ltr, double textScaleFactor = 1.0, int maxLines, int widgetSpanCount = 0, bool bFindWidgetSpanCount = false}) TextPainter