WheelSector class final

奖品的预计算路径、局部坐标和内容。

Annotations

Constructors

WheelSector({required int index, required double middleRad, required double sweepRad, required Path fan, required Offset anchor, required double localRotation, required double prizeHeight, required double shortSide, required LuckyFill? background, required List<LuckyImagePlacement> images, required List<LuckyTextLine> texts})
创建扇区几何,长度单位为逻辑像素。
const

Properties

anchor → Offset
局部坐标原点,即外缘中点。
final
background → LuckyFill?
实际采用的背景。
final
fan → Path
以圆心为原点的扇形路径。
final
hashCode → int
The hash code for this object.
no setterinherited
images → List<LuckyImagePlacement>
局部坐标下的图片摆放规则。
final
index → int
奖品下标。
final
localRotation → double
局部坐标相对圆心坐标系的旋转角。
final
middleRad → double
中线角,单位为弧度。
final
prizeHeight → double
奖品外缘到最大按钮的高度。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shortSide → double
外缘弦长。
final
sweepRad → double
角宽,单位为弧度。
final
texts → List<LuckyTextLine>
已过滤空行的文字布局。
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