WheelStyle class final
转盘奖品默认样式。
- Annotations
Constructors
- WheelStyle({LuckyFill? background = const LuckyFill.color(kLuckyTransparent), LuckyTextDefaults text = const LuckyTextDefaults()})
-
创建样式;透明背景仍视为有背景,null 表示不填充。
const
Properties
- background → LuckyFill?
-
奖品缺省背景。
final
- hashCode → int
-
与值相等性一致的哈希。
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → LuckyTextDefaults
-
文字缺省值。
final
Methods
-
copyWith(
{LuckyFill? background, LuckyTextDefaults? text, bool clearBackground = false}) → WheelStyle -
替换非 null 字段;
clearBackground显式清除背景。 -
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