ULID factory builder.
Constructors
- ULIDFactory([Random? random])
-
Creates a ULIDFactory instance, with optional
random
generator.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fromBytes(
Uint8List data) → ULID -
Generate a ULID from given bytes.
data
must be 16 bytes in length. -
fromString(
String string) → ULID -
Create ULID object from given (valid) ULID
string
. -
nextULID(
[int? timestamp]) → ULID - Generate a ULID.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
randomULID(
[int? timestamp]) → String - Generate a ULID String.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited