WheelBlockImage class

可选择随转盘一起旋转的圆环图片。

Inheritance
Annotations

Constructors

WheelBlockImage(ImageProvider<Object> image, {LuckyLength? top, LuckyLength? left, LuckyLength? width, LuckyLength? height, LuckyImageFormatter? formatter, double? borderRadius, double opacity = 1, ImageProvider<Object>? fallback, String? semanticLabel, bool rotate = false})
创建图片;rotate 默认关闭,其余参数与 LuckyImage 相同。
const

Properties

borderRadius → double?
图片圆角半径(逻辑像素);null 表示无圆角。
finalinherited
fallback → ImageProvider<Object>?
主图片失败时使用的后备 provider。
finalinherited
formatter → LuckyImageFormatter?
首帧解码后的图片转换函数。
finalinherited
hashCode → int
与值相等性一致的哈希。
no setteroverride
height → LuckyLength?
目标高度;null 按自然尺寸或宽度等比推导。
finalinherited
image → ImageProvider<Object>
主图片 provider。
finalinherited
left → LuckyLength?
水平偏移;null 使用居中位置。
finalinherited
opacity → double
绘制不透明度,调用方应提供 0–1 的值。
finalinherited
rotate → bool
是否绕圆心随盘旋转。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
图片的无障碍描述。
finalinherited
top → LuckyLength?
顶部偏移;null 按零处理。
finalinherited
width → LuckyLength?
目标宽度;null 按自然尺寸或高度等比推导。
finalinherited

Methods

copyWith({ImageProvider<Object>? image, LuckyLength? top, LuckyLength? left, LuckyLength? width, LuckyLength? height, LuckyImageFormatter? formatter, double? borderRadius, double? opacity, ImageProvider<Object>? fallback, String? semanticLabel, bool? rotate}) → WheelBlockImage
返回替换非 null 参数的副本,保留旋转设置。
override
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