SpannableGridCellData class
Metadata defining the item (cell) of SpannableGrid
The item id is required and must be unique within the grid widget. Item is positioned to column and row withing the grid and span columnSpan and rowSpan cells. By default, the grid item occupies a single cell. The content of the cell is determined by the child widget.
List<SpannableGridCellData> cells = List();
cells.add(SpannableGridCellData(
column: 1,
row: 1,
columnSpan: 2,
rowSpan: 2,
id: "Test Cell 1",
child: Container(
color: Colors.lime,
child: Center(
child: Text("Tile 2x2",
style: Theme.of(context).textTheme.title,
),
),
),
));
cells.add(SpannableGridCellData(
column: 4,
row: 1,
id: "Test Cell 2",
child: Container(
color: Colors.lime,
child: Center(
child: Text("Tile 1x1",
style: Theme.of(context).textTheme.title,
),
),
),
));
Constructors
Properties
- child ↔ Widget?
-
getter/setter pair
- column ↔ int
-
getter/setter pair
- columnSpan ↔ int
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ Object
-
getter/setter pair
- row ↔ int
-
getter/setter pair
- rowSpan ↔ int
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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