Uuid class
A UUID generator, useful for generating unique IDs. Shamelessly extracted from the author of Scoped Model plugin, Who maybe took from the Flutter source code. I'm not telling!
This will generate unique IDs in the format:
f47ac10b-58cc-4372-a567-0e02b2c3d479
Example
final String id = Uuid().generateV4();
Constructors
- Uuid()
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
-
generateV4(
) → String - Generate a version 4 (random) uuid. This is a uuid scheme that only uses random numbers as the source of the generated uuid.
-
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