DistanceUnits class
A helper class to make units more accessible
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Constants
- centimeters → const DistanceUnit
- Distance Unit: Centimeters: 1 Centimeter = 100 Meters
- feet → const DistanceUnit
- Distance Unit: Feet: 1 Foot = 0.3048 Meters
- inches → const DistanceUnit
- Distance Unit: Miles: 1 Mile = 0.000621371 Meters
- kilometers → const DistanceUnit
- Distance Unit: Kilometers: 1 Kilometer = 1000 Meters
- meters → const DistanceUnit
- Distance Unit: Meters: 1 Meter = 1 Meter
- miles → const DistanceUnit
- Distance Unit: Miles: 1 Mile = 1609.34 Meters
- millimeters → const DistanceUnit
- Distance Unit: Millimeters: 1 Millimeter = 1000 Meters
- nauticalMiles → const DistanceUnit
- Distance Unit: Miles: 1 Mile = 1609.34 Meters
- yards → const DistanceUnit
- Distance Unit: Yards: 1 Yard = 1.09361 Meters