binaryToHex static method

String binaryToHex(
  1. String binary
)

Converts a binary string into a hex string

Implementation

static String binaryToHex(String binary) {
  return BigInt.parse(binary, radix: 2).toRadixString(16).toUpperCase();
}