Distance class
A length of distance
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- inCentimeters → double
-
Return the number of centimeters spanned by this Distance
no setter
- inFeet → double
-
Return the number of feet spanned by this Distance
no setter
- inInches → double
-
Return the number of inches spanned by this Distance
no setter
- inKilometers → double
-
Return the number of kilometers spanned by this Distance
no setter
- inMeters → double
-
Return the number of meters spanned by this Distance
no setter
- inMicrometers → double
-
Return the number of micrometers spanned by this Distance
no setter
- inMiles → double
-
Return the number of miles spanned by this Distance
no setter
- inMillimeters → double
-
Return the number of millimeters spanned by this Distance
no setter
- inYards → double
-
Return the number of yards spanned by this Distance
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compareTo(
Distance other) → int -
Compares this Distance to
other
, returning zero if the values are equal. -
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 *(
num factor) → Distance -
Multiplies this Distance by the given
factor
and returns the result as a new Distance object. -
operator +(
Distance other) → Distance -
Adds this Distance and
other
and returns the sum as a new Distance object. -
operator -(
Distance other) → Distance -
Subtracts this Distance and
other
and returns the difference as a new Distance object. -
operator /(
num quotient) → Distance -
Divides this Distance by the given
quotient
and returns the result as a new Distance object. -
operator <(
Distance other) → bool -
Returns
true
if the value of this Distance is less than the value ofother
. -
operator <=(
Distance other) → bool -
Returns
true
if the value of this Distance is less than or equal to the value ofother
. -
operator ==(
dynamic other) → bool -
Returns
true
if this Distance has the same value asother
.override -
operator >(
Distance other) → bool -
Returns
true
if the value of this Distance is greater than the value ofother
. -
operator >=(
Distance other) → bool -
Returns
true
if the value of this Distance is greater than or equal to the value ofother
. -
operator unary-(
) → Distance -
Returns a new
Distance
representing thisDistance
negated. -
operator ~/(
int quotient) → Distance -
Divides this Distance by the given
quotient
and returns the result as a new Distance object.
Constants
- feetInYard → const int
- Number of feet in a yard
- inchesInFoot → const int
- Number of inches in a foot
- micrometersInCentimeter → const int
- Number of micrometers in a centimeter
- micrometersInFoot → const int
- Number of micrometers in a foot
- micrometersInInch → const int
- Number of micrometers in an inch
- micrometersInKilometer → const int
- Number of micrometers in a kilometer
- micrometersInMeter → const int
- Number of micrometers in a meter
- micrometersInMile → const int
- Number of micrometers in a mile
- micrometersInMillimeter → const int
- Number of micrometers in a millimeter
- micrometersInYard → const int
- Number of micrometers in a yard
- yardsInMile → const int
- Number of yards in a mile
- zero → const Distance
- A distance of zero