CubaWeatherMunicipality class

Main class to provide package functionality.

Constructors

CubaWeatherMunicipality()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

get(String municipalityQuery, {bool suggestion: false}) MunicipalityModel
Method that given a municipality of the user searches the cuban municipalities to find the best match and returns the municipality. The best match is considered as the cuban municipality of shorter length that contains the given municipality.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
suggestion(String municipality) MunicipalityModel
Method that returns the best match of the given municipality with the cuban municipalities. The best match is calculated using the Damerau-Levenshtein distance.
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited