UnitId class

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

charId(int index, {int digitOffset = 0}) String
Returns UnitId.cycleId of given index. UnitId.az is used as input - so result is not case sensitive and without numbers. Set digitOffset to specify minimum length of final result.
cycleId(int index, String sequence) String
Cycles through given sequence and builds String based on given index number.
nextId() String
Returns UnitId.cycleId of current microsecondsSinceEpoch and adds 4 random chars to end of String. UnitId.aZn is used as input - so result is case sensitive and with numbers.
randomFromSequence(int length, String sequence) String
Returns random String with given length of chars form sequence.
randomId({int length = 8, String sequence = az}) String
Returns random String with given length and settings.

Constants

aZ → const String
az → const String
aZn → const String
azn → const String
hex → const String