PlGridItem class
One cell of a PlGrid.
A description rather than a widget, which is the idiom this package
already uses for an accordion's folds and a table's columns, and it is here
for the same reason: the grid has to reason about its members. It packs them
into rows by the columns they take, and a Widget is opaque — there is no
asking one how wide it means to be.
It is a width and nothing else. No sheet, no padding, no typography: what goes inside brings its own, and a cell that drew a sheet would make span a visual decision.
- Annotations
Constructors
-
PlGridItem({required Widget child, PlassResponsive<
int> ? span, PlassResponsive<int> ? offset, PlassAlignSelf? alignSelf}) -
Creates a cell.
const
Properties
- alignSelf → PlassAlignSelf?
-
Overrides the row's
alignItemsfor this cell alone.final - child → Widget
-
What the cell holds, laid out to the width the span works out to.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
offset
→ PlassResponsive<
int> ? -
Columns left empty before the cell — space pushed in ahead of it, not an
absolute position in the row.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
span
→ PlassResponsive<
int> ? -
How many of the grid's columns the cell takes, read against the grid's
columns— so6is a half of the default twelve and a quarter of twenty-four.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