getBaseValue method

  1. @override
  2. @protected
Rational getBaseValue(
  1. WeightUnit unit,
  2. Rational value
)
override

Gets the base value for a unit of measurement of unit and value.

Implementation

@override
@protected
Rational getBaseValue(WeightUnit unit, Rational value) =>
    value * unit._gramCount;