LayoutFlex class final
The share of a flex layout's leftover main-axis space an item asks for, and what it does with the space it gets.
The two travel together because fit means nothing without a factor to claim space in the first place.
Constructors
- LayoutFlex.expanded([int? factor])
-
factorshares of the leftover space, filling every bit of what it gets. Defaults to 1 share.const - LayoutFlex.flexible([int? factor])
-
factorshares of the leftover space, free to stay smaller than that. Defaults to 1 share.const
Properties
- factor → int
-
How many shares of the leftover space this item asks for. 0 asks for
none, leaving the item at whatever size it chooses.
final
- fit → FlexFit
-
Whether this item must fill the space it is given, or may stay smaller.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- 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
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- none → const LayoutFlex
- No share of the leftover space: a fixed, non-flexible item.