cuba_weather_dart library

Classes

CubaWeatherRedCuba
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
WeatherDateModel
Model class for mapping part of the json returned by the https://www.redcuba.cu weather API
WeatherModel
Model class for mapping the json returned by the https://www.redcuba.cu weather API
WeatherRepository
Class to provide the functionality of obtaining weather data

Properties

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

CardinalPoint
Cardinal Point directions source: https://www.ecured.cu/Velocidad_del_viento

Exceptions / Errors

BadRequestException
InvalidSourceException