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
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