CsGridDefinition class
Placement of one CsGrid child (Cloudscape GridProps.ElementDefinition).
Each field maps breakpoints to a number of the 12 columns. Use
CsBreakpoint.base for Cloudscape's default key. A breakpoint without a
value uses the nearest smaller one that has a value.
const CsGridDefinition(colspan: {CsBreakpoint.base: 12, CsBreakpoint.xs: 6})
const CsGridDefinition.all(colspan: 4, offset: 2)
- Annotations
Constructors
-
CsGridDefinition({Map<
CsBreakpoint, int> ? colspan, Map<CsBreakpoint, int> ? offset, Map<CsBreakpoint, int> ? push, Map<CsBreakpoint, int> ? pull}) -
const
- CsGridDefinition.all({int colspan = 12, int offset = 0, int push = 0, int pull = 0})
-
The same values at every breakpoint.
const
Properties
-
colspan
→ Map<
CsBreakpoint, int> ? -
Columns the element spans, 1 to 12. Defaults to 12.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
offset
→ Map<
CsBreakpoint, int> ? -
Empty columns before the element, 0 to 11.
final
-
pull
→ Map<
CsBreakpoint, int> ? -
Moves the element towards the start by this many columns.
final
-
push
→ Map<
CsBreakpoint, int> ? -
Moves the element towards the end by this many columns without
affecting its neighbours (reorders visually).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
CsBreakpoint breakpoint) → CsGridCell -
The placement at
breakpoint. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited