GridStyle class final

九宫格普通态默认样式。

Annotations

Constructors

GridStyle({LuckyCellStyle cell = const LuckyCellStyle(background: LuckyFill.color(kLuckyTransparent), borderRadius: kLuckyGridDefaultBorderRadius), LuckyTextDefaults text = const LuckyTextDefaults()})
创建配置;列表由调用方保持不可变。
const

Properties

cell → LuckyCellStyle
普通格子样式;透明背景仍会触发阴影收缩。
final
hashCode → int
与配置相等性一致的哈希值。
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → LuckyTextDefaults
文字默认值。
final

Methods

copyWith({LuckyCellStyle? cell, LuckyTextDefaults? text}) → GridStyle
返回替换非空参数的副本,例如 value.copyWith() 保留配置。
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