LuckyBoxBlock class final

九宫格和老虎机共用的矩形装饰块。

例如 const LuckyBoxBlock(padding: LuckyEdgeInsets.all(8)) 为内容预留边距。

Annotations

Constructors

LuckyBoxBlock({LuckyEdgeInsets padding = LuckyEdgeInsets.zero, double borderRadius = 0, LuckyFill? background, LuckyBorder? border, List<LuckyImage> images = const []})
创建配置,未指定的可选字段使用声明的默认值。
const

Properties

background → LuckyFill?
块背景;null 表示无背景。
final
border → LuckyBorder?
块描边。
final
borderRadius → double
背景圆角半径(逻辑像素)。
final
hashCode → int
与字段值相等性一致的哈希值。
no setteroverride
images → List<LuckyImage>
块图片列表;调用方须保持列表不可变。
final
padding → LuckyEdgeInsets
四边内边距(逻辑像素)。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({LuckyEdgeInsets? padding, double? borderRadius, LuckyFill? background, LuckyBorder? border, List<LuckyImage>? images}) → LuckyBoxBlock
返回只替换指定字段的副本;参数为 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
按字段值比较配置,列表按内容比较。
override