UuidV1Generator class
Generates unique timestamp-based UUIDs (i.e. UuidVersion.v1).
This is the default implementation for Uuid.v1.
- Implemented types
- Annotations
-
- @sealed
Constructors
- UuidV1Generator({int? uniqueness, int? clockSequence, DateTime now() = DateTime.now})
-
Creates a new instance of a generator with the provided configuration.
factory
- UuidV1Generator.fromLastUuid(Uuid uuid, {DateTime now() = DateTime.now})
-
Creates a new instance of a generator from a previously generated
uuid
.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
-
generate(
) → Uuid -
Creates a new UUID.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited