GridTracks class

Represents a list of grid tracks for rows or columns.

Use GridTracks.none to specify no tracks.

When constructing with a list of GridTracks, use GridTrack.line to define named lines, and alternate with size tracks defined using TrackSize or other GridTrack constructors.

Example:

GridTracks([
  GridTrack.line('header'),
  GridTrack(TrackSize(16.rem)),
  GridTrack.line('content-start'),
  GridTrack(TrackSize.fr(1)),
  GridTrack.line('content-end'),
  GridTrack(TrackSize.auto),
  GridTrack.line('footer'),
]),

Read more: MDN Grid Tracks

Constructors

GridTracks(List<GridTrack> tracks)
Constructs a list of grid tracks.
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
value String
final

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

none → const GridTracks