Coordinate class
Constructors
- Coordinate({required double? latitude, required double? longitude})
-
const
- Coordinate.fromJson(String source)
-
It converts a JSON string into a Coordinate object.
factory
-
Coordinate.fromMap(Map<
String, dynamic> map) -
Coordinate.fromMap
is a factory constructor that takes aMap<String, dynamic>
and returns aCoordinate
objectfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- latitude → double?
-
final
- longitude → double?
-
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 setter
Methods
-
copyWith(
{double? latitude, double? longitude}) → Coordinate - "If the caller passes in a value for latitude, use that value, otherwise use the value of this.latitude."
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - It converts the object to a map.
-
toMap(
) → Map< String, dynamic> - It converts the latitude and longitude into a map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited