DistanceUnit class
Properties
-
dot
→ UnitDot<
DistanceUnit, Distance> -
Creates a derived unit builder with this as the first unit in a product.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- multiplier → double
-
The total mutiplier for this unit.
no setterinherited
- name → String
-
The standardized short form name of the unit (e.g. "m" for meters).
finalinherited
-
per
→ UnitPer<
DistanceUnit, Distance> -
Creates a derived unit builder with this as the numerator.
no setter
- prefix → MeasurementPrefix
-
The prefix to apply to the measurement.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unitMultiplier → double
-
The multiplier for the configured unit.
finalinherited
Methods
-
call(
num magnitude, {int precision = f.Precision.maximumPrecision}) → DistanceMeasurement -
from(
num value) → double -
Interprets the provided value as if it were of the configured unit,
returning the base value.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
of(
num siValue) → double -
Interprets the base value according to the configured unit.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withPrefix(
MeasurementPrefix prefix, {Precision precision = f.Precision.max}) → DistanceUnit
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- feet → const DistanceUnit
- inches → const DistanceUnit
- meters → const DistanceUnit
- miles → const DistanceUnit
- nauticalMiles → const DistanceUnit
- yards → const DistanceUnit