bigIntToBuffer static method

Uint8List bigIntToBuffer(
  1. BigInt i
)

Converts an BigInt to a Uint8List

Implementation

static Uint8List bigIntToBuffer(BigInt i) {
  return Uint8List.fromList(
      hex.decode(padToEven(AppHelpers.bigIntToHex(i).substring(2))));
}