ulidMonotonic static method
Generates a ULID that sorts after every ULID this generator produced before it, using Random.secure() for the initial suffix of each millisecond.
See IdGenerator.ulidMonotonic for how monotonicity is maintained. Note that consecutive IDs within one millisecond differ by an increment and are therefore predictable relative to each other; use nanoid or prefixed where each value must be independently unguessable.
Implementation
static String ulidMonotonic() => _service.generateUlidMonotonic();