ULID.nextMonotonicULID constructor

ULID.nextMonotonicULID(
  1. ULID previous, [
  2. int? timestamp
])

Generate the next monotonic ULID. If an overflow happened while incrementing the random part of the given previous ULID value then the returned value will have a zero random part.

Implementation

factory ULID.nextMonotonicULID(ULID previous, [int? timestamp]) =>
    DefaultULID.monotonic.nextULID(previous, timestamp);