Uuid class abstract

This object represents an UUID, 128 bit Universal Unique Identifier as defined in RFC 4122.

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 4122
no setter
version int
Version defined in RFC 4122
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 4122 4.1.7)
no setter

Static Methods

parse(String source) Uuid
Parses source string as Uuid. Parsing is case insensitive.
tryParse(String source) Uuid?
Parses source as Uuid. Parsing is case insensitive.