convert method
override
Converts input
and returns the result of the conversion.
Implementation
List<int> convert(String string) {
if (!string.length.isEven) {
throw new FormatException(
"Invalid input length, must be even.", string, string.length);
}
var bytes = new Uint8List(string.length ~/ 2);
_decode(string.codeUnits, 0, string.length, bytes, 0);
return bytes;
}