Uuid class
uuid for Dart Author: Yulian Kuncheff Released under MIT License.
Constructors
-
Uuid({Map<
String, dynamic> options})
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
parse(
String uuid, {List< int> buffer,int offset: 0} ) → List< int> -
Parses the provided
uuid
into a list of byte values. Can optionally be provided abuffer
to write into and a positionaloffset
for where to start inputting into the buffer. -
unparse(
List< int> buffer,{int offset: 0} ) → String -
Unparses a
buffer
of bytes and outputs a proper UUID string. An optionaloffset
is allowed if you want to start at a different point in the buffer. -
v1(
{Map< String, dynamic> options}) → String - v1() Generates a time-based version 1 UUID [...]
-
v1buffer(
List< int> buffer,{Map< String, dynamic> options,int offset: 0} ) → List< int> - v1buffer() Generates a time-based version 1 UUID [...]
-
v4(
{Map< String, dynamic> options}) → String - v4() Generates a RNG version 4 UUID [...]
-
v4buffer(
List< int> buffer,{Map< String, dynamic> options,int offset: 0} ) → List< int> - v4buffer() Generates a RNG version 4 UUID [...]
-
v5(
String namespace, String name, {Map< String, dynamic> options}) → String - v5() Generates a namspace & name-based version 5 UUID [...]
-
v5buffer(
String namespace, String name, List< int> buffer,{Map< String, dynamic> options,int offset: 0} ) → List< int> - v5buffer() Generates a RNG version 4 UUID [...]
-
noSuchMethod(
Invocation invocation ) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other ) → bool -
The equality operator. [...]
inherited
Constants
- NAMESPACE_DNS → const String
-
'6ba7b810-9dad-11d1-80b4-00c04fd430c8'
- NAMESPACE_NIL → const String
-
'00000000-0000-0000-0000-000000000000'
- NAMESPACE_OID → const String
-
'6ba7b812-9dad-11d1-80b4-00c04fd430c8'
- NAMESPACE_URL → const String
-
'6ba7b811-9dad-11d1-80b4-00c04fd430c8'
- NAMESPACE_X500 → const String
-
'6ba7b814-9dad-11d1-80b4-00c04fd430c8'