UnitSettings class
This class is ued to provide the configuration for which units you want the queried data to be converted to, to a weather factory
Constructors
- UnitSettings({TemperatureUnit temperatureUnit = TemperatureUnit.Celsius, WindSpeedUnit windSpeedUnit = WindSpeedUnit.Kilometres_Hour, PressureUnit pressureUnit = PressureUnit.Millibars, DistanceUnit distanceUnit = DistanceUnit.Kilometers, PrecipitationUnit precipitationUnit = PrecipitationUnit.Millimetres})
Properties
- distanceUnit ↔ DistanceUnit
-
The unit distance is provided in, defaults to kilometres
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- precipitationUnit ↔ PrecipitationUnit
-
The unit precipitation (Rain and Snow) is provided in, defaults to millimetres
getter/setter pair
- pressureUnit ↔ PressureUnit
-
The unit the pressure is provided in, defaults to millibars
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- temperatureUnit ↔ TemperatureUnit
-
The unit the temperature is provided in, defaults to Celsius
getter/setter pair
- windSpeedUnit ↔ WindSpeedUnit
-
The unit the wind speed is provided in, defaults to kilometres per hour
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited