fromBytes static method
takes 12 bytes of the input, which is expected to be a list of bytes, and makes a nonce from it expects the input bytes to be completely random!
Implementation
static Nonce fromBytes(List<int> bytes) {
return Nonce(
Uint8List.fromList(bytes.sublist(0, 12)).buffer.asUint32List());
}