LocationData class
Constructors
-
LocationData({required double latitude, required double longitude, String? address, String? city, String? state, String? country, String? postalCode, String? formattedAddress, String? placeId, List<
String> ? types, double? accuracy, Map<String, dynamic> ? additionalData, String? timezone, LocationBounds? bounds, List<LocationData> ? nearbyPlaces}) -
LocationData.fromJson(Map<
String, dynamic> json) -
factory
Properties
- accuracy → double?
-
final
-
additionalData
→ Map<
String, dynamic> ? -
final
- address → String?
-
final
- bounds → LocationBounds?
-
final
- city → String?
-
final
- country → String?
-
final
- formattedAddress → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- latitude → double
-
final
- longitude → double
-
final
-
nearbyPlaces
→ List<
LocationData> ? -
final
- placeId → String?
-
final
- postalCode → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → String?
-
final
- timezone → String?
-
final
-
types
→ List<
String> ? -
final
Methods
-
distanceTo(
LocationData other, {DistanceUnit unit = DistanceUnit.kilometers}) → double -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited