to method

  1. @override
String to(
  1. Converter<String> other,
  2. String 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
String to(Converter<String> other, String value) {
  final o = typeCheckConverter<NumberConverter>(other);
  final base = int.parse(value, radix: radix);
  return base.toRadixString(o.radix).toUpperCase();
}