toHex method

  1. @override
String toHex(
  1. String data
)
override

Computes a hexadecimal representation of the barcode, mostly for testing purposes

Implementation

@override
String toHex(String data) {
  var result = 0;
  for (var bit in convertHM(data)) {
    result = (result << 2) + bit.index;
  }

  return result.toRadixString(16);
}