NumberWheelConfig class final

数字转盘配置;第零格中线从正上方开始,按顺时针排列。

Annotations

Constructors

NumberWheelConfig({required List<NumberWheelPocket> pockets, NumberWheelOptions options = const NumberWheelOptions(), NumberWheelStyle style = const NumberWheelStyle()})
创建配置;列表在使用期间不可修改。
const
NumberWheelConfig.range(int min, int max, {int step = 1, List<LuckyFill> palette = kNumberWheelDefaultPalette, NumberWheelOptions options = const NumberWheelOptions(), NumberWheelStyle style = const NumberWheelStyle()})
按闭区间生成号码;步长须为正且配色不可为空,否则抛出 ArgumentError。 例如 NumberWheelConfig.range(0, 36) 生成递增的三十七个号码。
factory

Properties

hashCode → int
与值相等性一致的哈希值。
no setteroverride
options → NumberWheelOptions
布局和运动参数。
final
pockets → List<NumberWheelPocket>
显式格子列表。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style → NumberWheelStyle
绘制样式。
final

Methods

copyWith({List<NumberWheelPocket>? pockets, NumberWheelOptions? options, NumberWheelStyle? style}) → NumberWheelConfig
返回只替换非空参数的副本。
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
按全部字段比较值。
override