shortId static method

String shortId({
  1. int length = 8,
})

Generates a cryptographically random URL-safe alphanumeric ID. Suitable for invite codes and one-time tokens.

Implementation

static String shortId({int length = 8}) =>
    _service.generateShortId(length: length);