GridButton class final
可开始抽奖的按钮格;永不激活。
Constructors
-
GridButton({required int x, required int y, int col = 1, int row = 1, LuckyCellStyle? style, List<
LuckyText> texts = const [], List<GridImage> images = const [], GridCellPainter? painter}) -
创建格子;例如
GridButton(x: 0, y: 0)。const
Properties
- col → int
-
横向占用列数。
finalinherited
- hashCode → int
-
与值相等性一致的哈希值。
no setteroverride
-
images
→ List<
GridImage> -
图片项。
finalinherited
- painter → GridCellPainter?
-
图片之后、文字之前的内容回调。
final
- row → int
-
纵向占用行数。
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → LuckyCellStyle?
-
普通态局部样式。
finalinherited
-
texts
→ List<
LuckyText> -
文字项。
finalinherited
- x → int
-
起始列,从零开始。
finalinherited
- y → int
-
起始行,从零开始。
finalinherited
Methods
-
copyWith(
{int? x, int? y, int? col, int? row, LuckyCellStyle? style, List< LuckyText> ? texts, List<GridImage> ? images, GridCellPainter? painter}) → GridButton - 返回替换非空参数的副本。
-
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