LocationResult class

Constructors

LocationResult.new({required double latitude, required double longitude, required String address, String? city, String? state, String? country, String? postalCode, AddressSource addressSource = AddressSource.manualEntry})
LocationResult.fromCoordinates({required double latitude, required double longitude, String? address})
factory
LocationResult.fromGooglePlace(Map<String, dynamic> place, double lat, double lng)
Create LocationResult from Google Places API response
factory
LocationResult.fromJson(Map<String, dynamic> json)
factory
LocationResult.fromLocationModel(LocationModel locationModel)
Create LocationResult from existing LocationModel
factory

Properties

address String
final
addressSource AddressSource
final
city String?
final
country String?
final
hashCode int
The hash code for this object.
no setteroverride
latitude double
final
longitude double
final
postalCode String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String?
final

Methods

copyWith({double? latitude, double? longitude, String? address, String? city, String? state, String? country, String? postalCode, AddressSource? addressSource}) LocationResult
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.
override