WheelConfig class final

大转盘的不可变配置;例如 const WheelConfig(prizes: [WheelPrize()])。

Annotations

Constructors

WheelConfig({List<WheelBlock> blocks = const [], List<WheelPrize> prizes = const [], List<WheelButton> buttons = const [], WheelOptions options = const WheelOptions(), WheelStyle style = const WheelStyle()})
创建配置;奖品按顺时针排列,尺寸由宿主决定。
const

Properties

blocks → List<WheelBlock>
由外到内的圆环。
final
buttons → List<WheelButton>
按绘制顺序排列的同心按钮。
final
hashCode → int
与值相等性一致的哈希。
no setteroverride
options → WheelOptions
行为参数。
final
prizes → List<WheelPrize>
顺时针排列的奖品,第零项从指针处开始。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style → WheelStyle
奖品默认样式。
final

Methods

copyWith({List<WheelBlock>? blocks, List<WheelPrize>? prizes, List<WheelButton>? buttons, WheelOptions? options, WheelStyle? style}) → WheelConfig
返回替换非 null 参数的副本,例如 config.copyWith(prizes: [])。
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