WheelLayout class final

转盘在零旋转角时的只读几何,内容坐标以圆心为原点。

Inheritance
Annotations

Constructors

WheelLayout({required Size size, required Offset center, required double radius, required double prizeRadius, required double maxBtnRadius, required WheelSectorAngles angles, required List<WheelBlockLayout> blocks, required List<WheelSector> sectors, required List<WheelButtonLayout> buttons, required double gutter})
创建布局快照;列表应为不可变集合。
const

Properties

angles → WheelSectorAngles
与 motion 共用的角度表。
final
blocks → List<WheelBlockLayout>
从外到内排列的圆环。
final
buttons → List<WheelButtonLayout>
按绘制顺序排列的按钮。
final
center → Offset
圆心在宿主盒子中的位置。
final
gutter → double
扇区间隙。
final
hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
半径非正时没有绘制内容。
no setteroverride
maxBtnRadius → double
所有按钮的最大半径。
final
paintsWhenEmpty → bool
布局为空时是否仍要绘制装饰(如 blocks 外框);默认不绘制。
no setterinherited
prizeRadius → double
奖品区域半径。
final
radius → double
外半径。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sectors → List<WheelSector>
顺时针排列的奖品扇区。
final
size → Size
布局盒子逻辑尺寸。
finalinherited

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