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

SpannableGridCellData({@required Object id, Widget child, @required int column, @required int row, int columnSpan: 1, int rowSpan: 1})

Properties

child Widget
read / write
column int
read / write
columnSpan int
read / write
id Object
read / write
row int
read / write
rowSpan int
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited