LuckyImageSlot class final

图片槽标识,由分组、条目、图片下标和激活态组成。

例如 const LuckyImageSlot('prizes', 1, 0) 标识第二个奖品的首张图片。

Annotations

Constructors

LuckyImageSlot(String group, int itemIndex, int imageIndex, {bool active = false})
创建配置,未指定的可选字段使用声明的默认值。
const

Properties

active → bool
是否为激活态图片。
final
group → String
分组名,例如 prizes。
final
hashCode → int
与字段值相等性一致的哈希值。
no setteroverride
imageIndex → int
条目内图片下标,从零开始。
final
itemIndex → int
分组内条目下标,从零开始。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? group, int? itemIndex, int? imageIndex, bool? active}) → LuckyImageSlot
返回只替换指定字段的副本;参数为 null 时保留原值。
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
返回可读槽位路径,例如 prizes[1].imgs[0];激活图以 activeImgs 标识。
override

Operators

operator ==(Object other) → bool
按分组、条目、图片下标与激活态比较槽位。
override