LotsLayout class final

抽签不可变几何;槽位坐标以盒子左上角为原点。

Inheritance
Annotations

Constructors

LotsLayout({required Size size, required Rect cylinder, required Offset pivot, required List<Rect> sticks, required List<double> angles, required double riseDistance, required Rect card})
指定签筒、转轴、签槽和展示卡。
const

Properties

angles → List<double>
各槽位扇形旋转角,单位为弧度。
final
card → Rect
上半区展示卡。
final
cylinder → Rect
签筒前壁边界。
final
hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
零尺寸或无签槽时不可绘制。
no setteroverride
paintsWhenEmpty → bool
布局为空时是否仍要绘制装饰(如 blocks 外框);默认不绘制。
no setterinherited
pivot → Offset
底边中点,摇动转轴。
final
riseDistance → double
目标签上升距离。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → Size
布局盒子逻辑尺寸。
finalinherited
sticks → List<Rect>
各槽位未旋转的签矩形。
final

Methods

copyWith({Size? size, Rect? cylinder, Offset? pivot, List<Rect>? sticks, List<double>? angles, double? riseDistance, Rect? card}) → LotsLayout
返回只替换非空参数的布局;列表在使用期间不可修改。
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
raisedStick(int slot) → Rect
返回升起后目标签未旋转的矩形;slot 必须是有效槽位。
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited