paddedByteArray static method
Pads bytes
array to length
with zeros.
Implementation
static Uint8List paddedByteArray(Uint8List bytes, int length) {
Uint8List finalBytes = Uint8List.fromList(List<int>.filled(length, 0x0));
finalBytes.setAll(0, bytes);
return finalBytes;
}