MunicipalityRepository class

Class to provide the functionality of searching for a municipality

Constructors

MunicipalityRepository()

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

getMunicipality(String municipalityQuery) MunicipalityModel
Method that returns the best match of the given municipality with the cuban municipalities. The best match is considered as the cuban municipality of shorter length that contains the given municipality.
getSuggestion(String municipalityQuery) 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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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