GeoCoordinates class

Represents a geographical location using latitude and longitude coordinates.

This class encapsulates the latitude and longitude values that define a geographical location.

Constructors

GeoCoordinates({double? latitude, double? longitude})
Creates a new instance of GeoCoordinates.
GeoCoordinates.fromJson(Map<String, dynamic> json)
Creates a new instance of GeoCoordinates from a JSON object.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
latitude double?
The latitude of the geographical location.
final
longitude double?
The longitude of the geographical location.
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
toJson() Map<String, dynamic>
Returns a JSON-compatible map that represents this GeoCoordinates.
toString() String
A string representation of this object.
inherited

Operators

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