Axis enum Null safety

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 light left and right, rather than just horizontal).
  • TextDirection, which disambiguates between left-to-right horizontal content and right-to-left horizontal content.
Inheritance

Constructors

Axis()
const

Values

horizontal → const Axis

Left and right.

See also:

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

Up and down.

Axis()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
[horizontal, vertical]