Flex class abstract
Controls how a flex item consumes available space inside a flex container.
This maps to the CSS flex property and related properties like flex-grow,
flex-shrink, and flex-basis.
Read more: MDN Flex Item
Constructors
- Flex({double? grow, double? shrink, Unit? basis})
-
Create a flex value from grow/shrink/basis components.
constfactory
- Flex.basis(Unit basis)
-
Create a flex value with the given
basis.constfactory - Flex.grow(double grow)
-
Create a flex value with the given
growfactor.constfactory - Flex.shrink(double shrink)
-
Create a flex value with the given
shrinkfactor.constfactory
Properties
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