to method

  1. @override
Measure<num> to(
  1. Unit unit
)
override

Returns the measure equivalent to this measure but stated in the specified unit.

Implementation

@override
Measure<num> to(Unit unit) {
  if (unit == this.unit) return this;
  return NumericMeasure(doubleValue(unit), unit);
}