LocationModel class

Constructors

LocationModel({required double latitude, required double longitude, String? address, String? street, String? locality, String? subLocality, String? administrativeArea, String? subAdministrativeArea, String? country, String? postalCode, String? countryCode})
LocationModel.fromCoordinates({required double latitude, required double longitude})
factory
LocationModel.fromJson(Map<String, dynamic> json)
factory

Properties

address → String?
final
administrativeArea → String?
final
cityStateCountry → String
no setter
country → String?
final
countryCode → String?
final
fullAddress → String
no setter
hashCode → int
The hash code for this object.
no setteroverride
latitude → double
final
locality → String?
final
longitude → double
final
postalCode → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
street → String?
final
subAdministrativeArea → String?
final
subLocality → String?
final

Methods

copyWith({double? latitude, double? longitude, String? address, String? street, String? locality, String? subLocality, String? administrativeArea, String? subAdministrativeArea, String? country, String? postalCode, String? countryCode}) → LocationModel
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