GridPadCells class

Non-modifiable class that store information about grid: rows and columns count, size information.

Available extensions

Constructors

GridPadCells.gridSize({required int rowCount, required int columnCount})
Creating a grid with Weight sizes where Weight.size equal to 1.
GridPadCells.sizes({required Iterable<GridPadCellSize> rowSizes, required Iterable<GridPadCellSize> columnSizes})

Properties

columnCount int
Calculated total size of all columns.
no setter
columnSizes List<GridPadCellSize>
Contains information about size of each column.
final
columnsTotalSize TotalSize
Calculated total size of all columns.
final
hashCode int
The hash code for this object.
no setteroverride
rowCount int
Calculated total size of all rows.
no setter
rowSizes List<GridPadCellSize>
Contains information about size of each row.
final
rowsTotalSize TotalSize
Calculated total size of all rows.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

firstColumn(GridPadPlacementPolicy placementPolicy) int

Available on GridPadCells, provided by the GridPadCellsExt extension

Returns the first column index for a specific grid, depends on the placementPolicy.
firstRow(GridPadPlacementPolicy placementPolicy) int

Available on GridPadCells, provided by the GridPadCellsExt extension

Returns the first row index for a specific grid, depends on the placementPolicy.
isColumnOutsideOfGrid(int column, int columnSpan, GridPadSpanAnchor anchor) bool

Available on GridPadCells, provided by the GridPadCellsExt extension

Checks if the column with the span = columnSpan and specific anchor is outside the defined grid.
isRowOutsideOfGrid(int row, int rowSpan, GridPadSpanAnchor anchor) bool

Available on GridPadCells, provided by the GridPadCellsExt extension

Checks if the row with the span = rowSpan and specific anchor is outside the defined grid.
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.
override