toHex method

String toHex()

Implementation

String toHex() {
  return map((v) => (v < 16 ? '0' : '') + v.toRadixString(16)).join();
}