Axis class

@fileoverview Sometimes it is useful to be able to reference a coordinate axis. Also used to refer to directions as horizontal (X) and vertical (Y).

Constructors

Axis(int index, bool hasXComponent, bool hasYComponent, String name)
Const constructor.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
hasXComponent bool
Whether contains X component
final
hasYComponent bool
Whether contains Y component
final
index int
Index field to provide.
final
name String
String name provide.
final
oppositeAxis Axis
Getter.
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

Constants

BOTH → const Axis
Some APIs want to allow selection of both axis.
NONE → const Axis
Some APIs want to allow selection of neither axis
X → const Axis
Represents the horizontal axis.
Y → const Axis
Reperesents the vertical axis.