SideOfTheWorld enum

Represents the cardinal directions or, in other words, cardinal points.

Inheritance

Constructors

SideOfTheWorld(String abbr, String name)
const

Values

north → const SideOfTheWorld
const SideOfTheWorld('N', 'North')
northEast → const SideOfTheWorld
const SideOfTheWorld('NE', 'North-East')
east → const SideOfTheWorld
const SideOfTheWorld('E', 'East')
southEast → const SideOfTheWorld
const SideOfTheWorld('SE', 'South-East')
south → const SideOfTheWorld
const SideOfTheWorld('S', 'South')
southWest → const SideOfTheWorld
const SideOfTheWorld('SW', 'South-West')
west → const SideOfTheWorld
const SideOfTheWorld('W', 'West')
northWest → const SideOfTheWorld
const SideOfTheWorld('NW', 'North-West')

Properties

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

Static Methods

fromDegrees(double deg) SideOfTheWorld
The function of translation from degrees to the cardinal directions.

Constants

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