LuckyImageRequest class final
图片加载请求,包含槽位、图片项、实际 provider 与可选解码尺寸。
例如 request.copyWith(decodeLogicalWidth: 100) 指定解码的逻辑宽度。
- Annotations
Constructors
-
LuckyImageRequest({required LuckyImageSlot slot, required LuckyImage image, required ImageProvider<
Object> provider, double? decodeLogicalWidth, double? decodeLogicalHeight}) -
创建配置,未指定的可选字段使用声明的默认值。
const
Properties
- decodeLogicalHeight → double?
-
目标解码高度(逻辑像素);null 不指定。
final
- decodeLogicalWidth → double?
-
目标解码宽度(逻辑像素);null 不指定。
final
- hashCode → int
-
与字段值相等性一致的哈希值。
no setteroverride
- image → LuckyImage
-
图片项配置。
final
-
provider
→ ImageProvider<
Object> -
本次实际解析的 provider。
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slot → LuckyImageSlot
-
图片所属槽位。
final
Methods
-
copyWith(
{LuckyImageSlot? slot, LuckyImage? image, ImageProvider< Object> ? provider, double? decodeLogicalWidth, double? decodeLogicalHeight}) → LuckyImageRequest - 返回只替换指定字段的副本;参数为 null 时保留原值。
-
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 -
按槽位、图片项、provider 与目标尺寸比较请求。
override