isUlid static method

bool isUlid(
  1. String value
)

Returns true if value is a ULID (26 chars, Crockford base32).

Implementation

static bool isUlid(String value) =>
    RegExp(r'^[0-9A-HJKMNP-TV-Z]{26}$').hasMatch(value);