Ulid class
Lexicographically sortable, 128-bit identifier (UUID) with 48-bit timestamp and 80 random bits. Canonically encoded as a 26 character string, as opposed to the 36 character UUID.
Constructors
- Ulid({int? millis})
-
Create a Ulid instance.
factory
-
Ulid.fromBytes(List<
int> bytes) -
Creates a new instance form the provided bytes buffer.
factory
- Ulid.parse(String value)
-
Parse the canonical or the UUID format.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBytes(
) → Uint8List - Get the internals as bytes (copied buffer).
-
toCanonical(
) → String - Render the canonical, 26-character format.
-
toMillis(
) → int - Get the millisecond component.
-
toString(
) → String -
A string representation of this object.
override
-
toUuid(
{bool compact = false}) → String - Render the 36- or 32-character UUID format.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override