Gid class

A utility class for generating various types of IDs and hashes

Constructors

Gid()

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

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

Static Methods

generateHash(List<Object?> objects) String
Creates a hash string from the passed objects
nanoid({int size = 21}) String
Generates a nanoid-style random ID with custom alphabet
v1() String
Generates a UUID v1-like ID
v2() String
Generates a timestamp-based ID with prefix 'G'
v3(int length) String
Generates a random alphabetic string of specified length
v4({int length = 8, bool hasNumbers = true, bool hasSymbols = true}) String
Generates a random string of specified length with options for including hasNumbers and hasSymbols