Direction enum

Inheritance
Available extensions

Values

left → const Direction
up → const Direction
down → const Direction
upLeft → const Direction
upRight → const Direction
downLeft → const Direction
downRight → const Direction

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
isDownSide → bool
no setter
isHorizontal → bool
no setter
isLeftSide → bool
no setter
isRightSide → bool
no setter
isUpSide → bool
no setter
isVertical → bool
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

isSameXDirection(double x) → bool
isSameYDirection(double y) → bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toRadians() → double

Available on Direction, provided by the DirectionExt extension

toString() → String
A string representation of this object.
inherited
toVector2() → Vector2

Available on Direction, provided by the DirectionExt extension

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.