Specifies the geometry of tiles in a grid.

A grid specificiation divides a fixed width and height into a certain number of rows and columns, each with a specific size.

See also:

Constructors

GridSpecification.fromOffsets({List<double> columnOffsets, List<double> rowOffsets, double columnSpacing: 0.0, double rowSpacing: 0.0, EdgeInsets padding: EdgeInsets.zero })

Creates a grid specification from an explicit list of offsets.

GridSpecification.fromRegularTiles({double tileWidth, double tileHeight, int columnCount, int rowCount, double columnSpacing: 0.0, double rowSpacing: 0.0, EdgeInsets padding: EdgeInsets.zero })

Creates a grid specification containing a certain number of equally sized tiles.

Properties

columnCount → int

The number of columns in this grid.

read-only
columnOffsets → List<double>

The offsets of the column boundaries in the grid.

read-only
columnSpacing → double

The horizontal padding between columns.

read-only
gridSize → Size

The size of the grid.

read-only
padding → EdgeInsets

The interior padding of the grid.

read-only
rowCount → int

The number of rows in this grid.

read-only
rowOffsets → List<double>

The offsets of the row boundaries in the grid.

read-only
rowSpacing → double

The vertical padding between rows.

read-only
hashCode → int

Get a hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

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