cuba_weather_insmet_dart library

Classes

CubaWeatherInsMet
Main class to provide package functionality.
SourceModel
SourceRepository
Class to provide the functionality of searching for a source
WeatherApiClient
Class to provide the functionality of making API requests
WeatherDayModel
Model class for mapping part of the json returned by the https://www.insmet.cu weather API
WeatherModel
Model class for mapping the json returned by the https://www.insmet.cu weather API
WeatherRepository
Class to provide the functionality of obtaining weather data

Properties

dictStringToState Map<String, State>
final
sources List<SourceModel>
Sources of weather data
read / write

Functions

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.

Enums

State

Exceptions / Errors

BadRequestException
InvalidSourceException
ParseException