WheelSectorAngles class final

由配置计算的扇区角度,供布局和停止求解共用。

Annotations

Constructors

WheelSectorAngles.fromConfig(WheelConfig config)
创建角度表;相同权重使用等分公式,非有限或非正权重抛 ArgumentError。
factory

Properties

count → int
扇区数。
final
hashCode → int
The hash code for this object.
no setterinherited
prizeDeg → double
等分角宽;无奖品时为零。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uniform → bool
是否等分。
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sectorAtPointer(double rotateDeg, double offsetDegree) → int
反算指针下的奖品;无奖品或非有限角度返回 −1。
startDeg(int i) → double
返回第 i 个扇区的起始角,单位为度。
sweepDeg(int i) → double
返回第 i 个扇区的角宽,单位为度。
toString() → String
A string representation of this object.
inherited

Operators

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