LotsConfig class final

抽签配置;签与选奖权重一一对应。

Annotations

Constructors

LotsConfig({List<LotsStick> sticks = const [], LotsOptions options = const LotsOptions(), LotsStyle style = const LotsStyle()})
创建配置;列表在使用期间不可修改。
const

Properties

hashCode → int
与值相等性一致的哈希值。
no setteroverride
options → LotsOptions
运动和布局参数。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sticks → List<LotsStick>
候选签列表。
final
style → LotsStyle
签筒和展示卡样式。
final

Methods

copyWith({List<LotsStick>? sticks, LotsOptions? options, LotsStyle? style}) → LotsConfig
返回只替换非空参数的副本。
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