LayoutFlex class final

An item's factor share of a flex's leftover main-axis space, and the fit it takes that share at.

Constructors

LayoutFlex.expanded([int? factor])
factor shares of the leftover space, filled. Defaults to 1.
const
LayoutFlex.flexible([int? factor])
factor shares of the leftover space, free to stay smaller. Defaults to 1.
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.