to abstract method

T to(
  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 to(Converter<T> other, T value);