Wind class

Wind information.

Constructors

Wind({int? direction, double? gust, double speed = 0.0})
Define a Wind class.
const
Wind.fromJson(Map<String, dynamic> json)
Factory that returns a Wind class from json Map.
factory

Properties

direction int?
Wind direction, degrees (meteorological).
final
gust double?
Wind gust. (meter/sec).
final
gustInKilometersPerHour double?
Returns the wind gust in kilometers per hour, if not null.
no setter
gustInKnots double?
Returns the wind gust in knots, if not null.
no setter
gustInMilesPerHour double?
Returns the wind gust in miles per hour, if not null.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed double
Wind speed, default is 0.0. (meter/sec).
final
speedInKilometersPerHour double
Returns the wind speed in kilometers per hour.
no setter
speedInKnots double
Returns the wind speed in knots.
no setter
speedInMilesPerHour double
Returns the wind speed in miles per hour.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a map of the class.
toString() String
A string representation of this object.
inherited

Operators

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