LotsStick class final
一支签;升起后显示标签,签文在展示卡内绘制。
- Annotations
Constructors
-
LotsStick({required String label, List<
LuckyText> texts = const [], List<LuckyImage> images = const [], LuckyFill? fill, double? weight, bool disabled = false, LotsStickPainter? painter}) -
创建配置;列表在使用期间不可修改。
const
Properties
- disabled → bool
-
是否禁止随机选中。
final
- fill → LuckyFill?
-
目标签填充,空时使用默认签色。
final
- hashCode → int
-
与值相等性一致的哈希值。
no setteroverride
-
images
→ List<
LuckyImage> -
展示卡图片。
final
- label → String
-
签的显示名称。
final
- painter → LotsStickPainter?
-
自定义展示卡内容,仅录制时调用。
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
texts
→ List<
LuckyText> -
展示卡文字。
final
- weight → double?
-
随机选奖权重,空值不参与。
final
Methods
-
copyWith(
{String? label, List< LuckyText> ? texts, List<LuckyImage> ? images, LuckyFill? fill, double? weight, bool? disabled, LotsStickPainter? painter}) → LotsStick - 返回只替换非空参数的副本。
-
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