Body enum

String constants that represent the solar system bodies supported by Astronomy Engine.

The following strings represent solar system bodies supported by various Astronomy Engine functions. Not every body is supported by every function; consult the documentation for each function to find which bodies it supports.

"Sun", "Moon", "Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune", "Pluto", "SSB" (Solar System Barycenter), "EMB" (Earth/Moon Barycenter)

You can also use enumeration syntax for the bodies, like Astronomy.Body.Moon, Astronomy.Body.Jupiter, etc.

@enum {string}

Inheritance
Available extensions

Values

Sun → const Body
Moon → const Body
Mercury → const Body
Venus → const Body
Earth → const Body
Mars → const Body
Jupiter → const Body
Saturn → const Body
Uranus → const Body
Neptune → const Body
Pluto → const Body
SSB → const Body
EMB → const Body
Star1 → const Body
Star2 → const Body
Star3 → const Body
Star4 → const Body
Star5 → const Body
Star6 → const Body
Star7 → const Body
Star8 → const Body

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
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

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