Uuid class abstract
This object represents an UUID, 128 bit Universal Unique Identifier as defined in RFC 9562.
- Implemented types
Constructors
- Uuid.fromBytes(Uint8List bytes, [int offset])
-
Creates Uuid from byte array
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
- variant → Variant
-
Variant defined in
RFC 9562 section 4.1
no setter
- version → int
-
Version defined in
RFC 9562 section 4.2
no setter
Methods
-
compareTo(
Uuid other) → int -
Compares this UUID to another Uuid
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBytes(
) → Uint8List - Returns byte array of this UUID
-
toString(
) → String -
Returns canonical string representation
override
Operators
-
operator <(
Uuid other) → bool - Less than operator, see compareTo for rules
-
operator <=(
Uuid other) → bool - Less than or equal operator, see compareTo for rules
-
operator ==(
Object other) → bool -
The equality operator.
override
-
operator >(
Uuid other) → bool - Greater than operator, see compareTo for rules
-
operator >=(
Uuid other) → bool - Greater than or equal operator, see compareTo for rules
Static Properties
- nil → Uuid
-
Nil UUID
(see RFC 9562 section 5.9)
no setter