Direction class

The direction of an actor.

Note: This class mimics an enum in Dart. In future Dart versions we will be able to use real enums.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

values List<Direction>
read-only

Constants

down → const Direction
const Direction._(1, 'down')
left → const Direction
const Direction._(2, 'left')
const Direction._(0, 'right')
up → const Direction
const Direction._(3, 'up')