Location class
Contains detailed location information.
- Annotations
-
- @immutable
Constructors
- Location({required double latitude, required double longitude, required DateTime timestamp})
-
Constructs an instance with the given values for testing. Location
instances constructed this way won't actually reflect any real information
from the platform, just whatever was passed in at construction time.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- latitude → double
-
The latitude associated with the placemark.
final
- longitude → double
-
The longitude associated with the placemark.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
The UTC timestamp the coordinates have been requested.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the Location instance into a Map instance that can be serialized to JSON.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
dynamic other) → bool -
The equality operator.
override