call method

T call(
  1. Converter<T> other,
  2. T value
)

Convertes the given value from this unit to the other unit.

Throws ArgumentError if its not possible to convert between the two units.

Implementation

T call(Converter<T> other, T value) => to(other, value);