GridBoxSpec class final
Immutable, validated geometry resolved from GridBoxStyler.
This is the sole complete Grid geometry carrier. Branch selection happens during live and dry layout, not while building the widget tree.
- Inheritance
-
- Object
- Spec<
GridBoxSpec> - GridBoxSpec
- Mixed-in types
- Annotations
Constructors
-
GridBoxSpec({List<
GridTrack> columns = const [GridTrack.fr(1)], List<GridTrack> rows = const [], GridTrack? autoRows, double columnGap = 0, double rowGap = 0, Clip clipBehavior = .none, List<GridConstraintBranch> constraintBranches = const []}) -
Creates a validated spec and snapshots every caller-owned collection.
factory
Properties
- autoRows → GridTrack?
-
Track repeated for each row required beyond rows.
final
- clipBehavior → Clip
-
How overflowing Grid content is clipped while painting.
final
- columnGap → double
-
Logical-pixel gap between adjacent columns.
final
-
columns
→ List<
GridTrack> -
Column tracks used for row-major placement.
final
-
constraintBranches
→ List<
GridConstraintBranch> -
Ordered local-constraint branches evaluated during layout.
final
- hashCode → int
-
Overrides the hash code getter to compute hash code based on properties.
no setterinherited
-
props
→ List<
Object?> -
The properties based on which equality and hash code are computed.
no setteroverride
- rowGap → double
-
Logical-pixel gap between adjacent rows.
final
-
rows
→ List<
GridTrack> -
Explicit row tracks reserved by the Grid.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool
-
Whether to use a detailed string representation of the object.
no setterinherited
- type → Type
-
no setterinherited
Methods
-
copyWith(
{List< GridTrack> ? columns, List<GridTrack> ? rows, GridTrack? autoRows, double? columnGap, double? rowGap, Clip? clipBehavior, List<GridConstraintBranch> ? constraintBranches}) → GridBoxSpec -
Returns a validated copy with each non-null argument replaced.
override
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
getDiff(
Equatable other) → Map< String, String> -
Returns a map of properties that differ between this object and another.
inherited
-
lerp(
covariant GridBoxSpec? other, double t) → GridBoxSpec -
Interpolates compatible Grid geometry toward
other.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
Overrides the equality operator to compare based on the properties.
inherited