GlobeCoordinates class

Represents the coordinates of a point on the globe.

Constructors

GlobeCoordinates(double latitude, double longitude)
The GlobeCoordinates class provides methods to convert the coordinates to a map, JSON, and a string representation. It also supports copying the coordinates with optional new latitude and longitude values.
const
GlobeCoordinates.fromJson(String source)
Creates a GlobeCoordinates object from a JSON string.
factory
GlobeCoordinates.fromMap(Map<String, dynamic> map)
Creates a GlobeCoordinates object from a map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
latitude double
final
longitude double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({double? latitude, double? longitude}) GlobeCoordinates
Creates a copy of the GlobeCoordinates object with optional new latitude and longitude values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Converts the GlobeCoordinates object to a JSON string.
toMap() Map<String, dynamic>
Converts the GlobeCoordinates object to a map.
toString() String
Returns a string representation of the GlobeCoordinates object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited