GridLayout class final

九宫格布局;格子下标依次对应奖品和按钮。

Inheritance
Annotations

Constructors

GridLayout({required Size size, required Rect prizeArea, required double cellWidth, required double cellHeight, required List<GridBlockLayout> blocks, required List<GridCellGeometry> cells, required int prizeCount, required bool isEmpty})
创建预算完成的布局;列表须保持不可变。
const

Properties

blocks → List<GridBlockLayout>
背景块几何。
final
cellHeight → double
单行高度。
final
cells → List<GridCellGeometry>
每格的普通态与激活态几何。
final
cellWidth → double
单列宽度。
final
hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
行列或尺寸无效时为真。
final
paintsWhenEmpty → bool
布局为空时是否仍要绘制装饰(如 blocks 外框);默认不绘制。
no setterinherited
prizeArea → Rect
逐层扣除背景内边距后的奖品区。
final
prizeCount → int
奖品数量。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → Size
布局盒子逻辑尺寸。
finalinherited

Methods

hitRect(int cellIndex) → Rect
返回第 cellIndex 个格子的完整命中矩形,不包含阴影收缩。
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
The equality operator.
inherited