Coordinate class

Coordinate represents the actual location with attributes as follows: latitude, and longitude.

Constructors

Coordinate({required num latitude, required num longitude})
const
Coordinate.fromJson(Map<String, dynamic> json)
Create Coordinate with json Map object
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
latitude num
latitude for the location.
final
longitude num
longitude for the location.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

copyWith({num? latitude, num? longitude}) Coordinate
Copy this Coordinate with the given attributes if given not null.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Json Map object of this Coordinate.
toString() String
A string representation of this object.

Operators

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