hexify static method

String hexify(
  1. BigInt dec, {
  2. bool isWithPrefix = true,
})

Implementation

static String hexify(BigInt dec, {bool isWithPrefix = true}) {
  final res = dec.toRadixString(16);
  return isWithPrefix ? '0x0' + res : res;
}