cuba_weather_municipality_dart library

Classes

CubaWeatherMunicipality
Main class to provide package functionality.
MunicipalityModel
Class of represent a Municipality
MunicipalityRepository
Class to provide the functionality of searching for a municipality

Properties

municipalities List<MunicipalityModel>
Cuban municipalities
read / write

Functions

curateMunicipality(String municipality) String
Method that eliminates the letters with tilde, dieresis, etc.
distance(String s1, String s2) int
Implementation of Damerau-Levenshtein distance with transposition (also sometimes calls unrestricted Damerau-Levenshtein distance). It is the minimum number of operations needed to transform one string into the other, where an operation is defined as an insertion, deletion, or substitution of a single character, or a transposition of two adjacent characters.