DistanceUnit class

A class for storing information of distance unit

Constructors

DistanceUnit.fromWireName(String wireName)
Creates distance unit with a decoded json object from countries
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wireName String
Actual value from json
final

Methods

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

Operators

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

Static Properties

values List<DistanceUnit>
All values with DistanceUnit
no setter

Constants

kilometres → const DistanceUnit
Constant value of the kilometres enum
kilometresWireName → const String
Value of kilometres in json
miles → const DistanceUnit
Constant value of the miles enum
milesWireName → const String
Value of miles in json