LocationModel class

Class that defines the Location entity, which contains its properties and methods.

Constructors

LocationModel({required String country, required String city, required double latitude, required double longitude})

Properties

city ↔ String
Property that defines the city.
getter/setter pair
country ↔ String
Property that defines the country.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
latitude ↔ double
Property that defines the latitude.
getter/setter pair
longitude ↔ double
Property that defines the longitude.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited