FlexDirection enum

The flex-direction CSS property sets how flex items are placed in the flex container defining the main axis and the direction (normal or reversed).

Read more: MDN flex-direction

Inheritance
Available extensions

Values

row → const FlexDirection

The flex container's main-axis is defined to be the same as the text direction. The main-start and main-end points are the same as the content direction.

const FlexDirection('row')
rowReverse → const FlexDirection

Behaves the same as row but the main-start and main-end points are opposite to the content direction.

const FlexDirection('row-reverse')
column → const FlexDirection

The flex container's main-axis is the same as the block-axis. The main-start and main-end points are the same as the before and after points of the writing-mode.

const FlexDirection('column')
columnReverse → const FlexDirection

Behaves the same as column but the main-start and main-end are opposite to the content direction.

const FlexDirection('column-reverse')
inherit → const FlexDirection
const FlexDirection('inherit')
initial → const FlexDirection
const FlexDirection('initial')
revert → const FlexDirection
const FlexDirection('revert')
revertLayer → const FlexDirection
const FlexDirection('revert-layer')
unset → const FlexDirection
const FlexDirection('unset')

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
value String
The css value
final

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

Constants

values → const List<FlexDirection>
A constant List of the values in this enum, in order of their declaration.