to method

  1. @override
double to(
  1. Converter<double> other,
  2. double value
)
override

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

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

Implementation

@override
double to(Converter<double> other, double value) {
  final o = typeCheckConverter<CustomConverter>(other);
  return o.forward(reverse(value));
}