Distance class

Basic structure for distance attributes.

Inheritance

Constructors

Distance(String? code)

Properties

hashCode int
The hash code for this object.
no setterinherited
inFeet double?
Get the distance in feet.
no setter
inKilometers double?
Get the distance in kilometers.
no setter
inMeters double?
Get the distance in meters.
no setter
inSeaMiles double?
Get the distance in sea miles.
no setter
isMaximum bool
Returns true if the original value was 9999 (10 km or more — maximum reportable visibility).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value double?
Get the value as a float.
no setterinherited

Methods

asMap() Map<String, Object?>
Returns the numeric value data as a map like Map<String, dynamic>.
override
converted({double? conversionDouble, double conversionFunction(double)?}) double?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() String
Returns the object data as a string in JSON format.
inherited
toString() String
A string representation of this object.
override

Operators

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