Axis enum

The two cardinal directions in two dimensions.

The axis is always relative to the current coordinate space. This means, for example, that a horizontal axis might actually be diagonally from top right to bottom left, due to some local Transform applied to the scene.

See also:

  • AxisDirection, which is a directional version of this enum (with values like left and right, rather than just horizontal).
  • TextDirection, which disambiguates between left-to-right horizontal content and right-to-left horizontal content.
Inheritance

Values

horizontal → const Axis

Left and right.

See also:

  • TextDirection, which disambiguates between left-to-right horizontal content and right-to-left horizontal content.
vertical → const Axis

Up and down.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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

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