bigIntFromHex function Null safety

BigInt bigIntFromHex(
  1. String input,
  2. {String separator = ':'}
)

Implementation

BigInt bigIntFromHex(String input, {String separator = ':'}) {
  input = input.replaceAll(RegExp('$separator|\r|\n'), '');
  return BigInt.parse(input, radix: 16);
}