LuckyImageSlot class final
图片槽标识,由分组、条目、图片下标和激活态组成。
例如 const LuckyImageSlot('prizes', 1, 0) 标识第二个奖品的首张图片。
- Annotations
Constructors
- LuckyImageSlot(String group, int itemIndex, int imageIndex, {bool active = false})
-
创建配置,未指定的可选字段使用声明的默认值。
const
Properties
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