LottoStyle class final

摇奖机配色;例如 const LottoStyle(buttonText: '开奖')。

Annotations

Constructors

LottoStyle({Color drumColor = const Color(0xFFE8F2FA), Color rimColor = const Color(0xFF7893A7), Color slotColor = const Color(0xFFCFD8DC), Color buttonColor = const Color(0xFFFFB300), Color buttonTextColor = const Color(0xFF263238), String buttonText = '开始'})
创建样式;号码球颜色由每个号码池单独指定。
const

Properties

buttonColor → Color
开始按钮背景色。
final
buttonText → String
开始按钮文案。
final
buttonTextColor → Color
开始按钮文字色。
final
drumColor → Color
透明容器背板色。
final
hashCode → int
与相等性一致的哈希。
no setteroverride
rimColor → Color
容器边缘与出口色。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slotColor → Color
结果槽背景色。
final

Methods

copyWith({Color? drumColor, Color? rimColor, Color? slotColor, Color? buttonColor, Color? buttonTextColor, String? buttonText}) → LottoStyle
返回替换非空参数的副本,例如 style.copyWith(buttonText: '开奖')。
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