CardinalDirection class
@fileoverview Address the 8 places resizers need to appear. Is a Java enum.
Constructors
- CardinalDirection(CardinalDirectionType type, Coordinate point, Axis? axis, bool horizontalAxis, bool verticalAxis, bool west, bool north, double? direction, String name)
Properties
- axis → Axis?
-
Cardinal axis (intercardinal directions are excluded, use API below)
final
- direction → double?
-
Multiplier based on direction useful to eliminate switches in logic.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontalAxis → bool
-
Is on horizontal axis
final
- name → String
-
Name of cardinal direction
final
- north → bool
-
Whether cardinal direction value is west- or north- facing
final
- point → Coordinate
-
Coordinate point where this appears, typically in resize UIs
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → CardinalDirectionType
-
Cardinal direction type
final
- verticalAxis → bool
-
Is on vertical axis
final
- west → bool
-
Whether cardinal direction value is west- or north- facing
final
- westOrNorth → bool
-
no setter
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
Static Properties
-
all
→ Iterable<
CardinalDirection> -
All direction values
final
-
cardinal
→ Iterable<
CardinalDirection> -
Cardinal directions
final
- East → CardinalDirection
-
final
-
horizontal
→ Iterable<
CardinalDirection> -
Horizontal directions
final
-
intercardinal
→ Iterable<
CardinalDirection> -
Ordinal directions
final
- North → CardinalDirection
-
final
- NorthEast → CardinalDirection
-
final
- NorthWest → CardinalDirection
-
final
- South → CardinalDirection
-
final
- SouthEast → CardinalDirection
-
final
- SouthWest → CardinalDirection
-
final
-
vertical
→ Iterable<
CardinalDirection> -
Vertical directions
final
- West → CardinalDirection
-
final