GridPlacement class abstract

Describes where a grid item should be placed within a grid. It can place an item by naming a grid area, or by describing start/end lines for the item's row and column tracks. Use this to control the item's location and span inside its grid.

Maps to the CSS grid-area, grid-row, and grid-column properties.

Read more: MDN Grid Placement

Constructors

GridPlacement({LinePlacement? rowStart, LinePlacement? rowEnd, LinePlacement? columnStart, LinePlacement? columnEnd})
Creates a placement by specifying start/end lines for rows and columns using LinePlacement values.
const
factory
GridPlacement.area(String name)
Creates a placement that targets a named grid area.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
styles Map<String, String>
no setter

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

Constants

auto → const GridPlacement
A placement that leaves the item's position to automatic placement (equivalent to using the browser's automatic grid placement).