intToBuffer function

Uint8List intToBuffer(
  1. int i
)

Converts an int to a Uint8List

Implementation

Uint8List intToBuffer(int i) {
  return Uint8List.fromList(hex.decode(padToEven(intToHex(i).substring(2))));
}