UnitSettings class Null safety

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
read / write
hashCode int
The hash code for this object.
read-onlyinherited
precipitationUnit PrecipitationUnit
The unit precipitation (Rain and Snow) is provided in, defaults to millimetres
read / write
pressureUnit PressureUnit
The unit the pressure is provided in, defaults to millibars
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
temperatureUnit TemperatureUnit
The unit the temperature is provided in, defaults to Celsius
read / write
windSpeedUnit WindSpeedUnit
The unit the wind speed is provided in, defaults to kilometres per hour
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited