LuckyLayoutInput class final

布局环境;例如 LuckyLayoutInput.headless(const Size(300, 300))。

Annotations

Constructors

LuckyLayoutInput({required Size size, required double devicePixelRatio, required LuckyTextMeasurer measurer, TextDirection textDirection = TextDirection.ltr, AlignmentGeometry alignment = Alignment.topLeft})
创建环境,调用方负责释放 measurer。
const
LuckyLayoutInput.headless(Size size, {double devicePixelRatio = 1})
创建无头布局环境,用完须调用 input.measurer.dispose()。
factory

Properties

alignment → AlignmentGeometry
非正方形盒子的对齐。
final
devicePixelRatio → double
设备像素比。
final
hashCode → int
The hash code for this object.
no setterinherited
measurer → LuckyTextMeasurer
文字测量器。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → Size
盒子尺寸。
final
textDirection → TextDirection
文字整形方向。
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