Coords class
Constructors
Properties
- accuracy → double
-
final
- altitude → double?
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- heading → double?
-
final
- isNullIsland → bool
-
Whether these coordinates are at the null island (0,0).
This is often a sign of missing/invalid data.
no setter
- isValid → bool
-
Whether these coordinates are within valid Earth ranges.
no setter
- latitude → double
-
final
- longitude → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speed → double?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → JsonMap -
toString(
) → String -
A string representation of this object.
override
-
validateRange(
) → void - Validates that coordinates are within valid ranges. Throws InvalidCoordsException if invalid.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
tryFromMap(
JsonMap map) → Coords? - Creates Coords from a map, returning null if data is invalid. Use this when you want to gracefully handle invalid data.