FlexWrap enum
Defines how flex items wrap within the flex container when they exceed the container's size.
Flex wrapping controls whether items that don't fit on a single line are moved to additional lines. This is essential for responsive layouts where content needs to adapt to different container sizes.
When wrapping is enabled, items are distributed across multiple lines based on the FlexDirection and available space. The wrapping behavior can be normal or reversed, affecting the order in which lines are filled.
Values
- none → const FlexWrap
-
Items do not wrap. All items remain on a single line, potentially causing overflow. This is useful when you want to maintain a single-line layout regardless of content size.
- wrap → const FlexWrap
-
Items wrap to the next line when they don't fit on the current line. Lines are filled in the normal direction (top-to-bottom for columns, left-to-right for rows).
- wrapReverse → const FlexWrap
-
Items wrap to the previous line when they don't fit. Lines are filled in reverse order (bottom-to-top for columns, right-to-left for rows).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited