NumericMeasure class
Scalar measure.
- Inheritance
-
- Object
- Measurable
- Measure<
num> - NumericMeasure
Constructors
- NumericMeasure(num value, Unit unit)
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- standardUnit → Unit
-
The standard unit identifies the "type" of Quantity quantity for which
this measurable is employed.
no setterinherited
- unit → Unit
-
The measurement unit of this measure.
final
- value → num
-
The measurement value of this measure.
final
Methods
-
compareTo(
Measurable other) → int -
Compares this object to another object.
inherited
-
doubleValue(
Unit unit) → double -
Returns the value of this measurable stated in the specified unit as a
double
.override -
intValue(
Unit unit) → int -
Returns the estimated integral value of this measurable stated in the
specified unit as an
integer
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
to(
Unit unit) → Measure< num> -
Returns the measure equivalent to this measure but stated in the
specified unit.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override