Direction enum

Inheritance
Available extensions

Values

horizontal → const Direction
vertical → const Direction

Properties

crossAxis LayoutAxis
See mainAxis
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
mainAxis LayoutAxis
A getter for returning the LayoutAxis whose LayoutAxis.axisIndex can be used with Vector2s to get the corresponding axis values.
no setter
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

crossAxisValue(Vector2 vector) double
A helper for returning the cross axis for vector, given this direction.
mainAxisValue(Vector2 vector) double
A helper for returning the main axis for vector, given this direction.
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<Direction>
A constant List of the values in this enum, in order of their declaration.