Nonce constructor

Nonce([
  1. int length = 32
])

Creates a Nonce containing a random alphanumeric string length characters long.

Implementation

factory Nonce([int length = 32]) {
  assert(length > 0);
  return Nonce._(generate(length));
}