UnitSettings class

This class stores the configuration for which units you want the queried data to be converted to

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
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
precipitationUnit PrecipitationUnit
getter/setter pair
pressureUnit PressureUnit
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
temperatureUnit TemperatureUnit
getter/setter pair
windSpeedUnit WindSpeedUnit
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