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 Properties
- instanceCounter ↔ int
-
getter/setter pair
- instanceId → String
-
no setter
- onChanged ↔ VoidCallback?
-
getter/setter pair
- units → String
-
no setter
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. SetdigitOffset
to specify minimum length of final result. -
cycleId(
int index, String sequence) → String -
Cycles through given
sequence
and builds String based on givenindex
number. -
nextId(
) → String -
Returns UnitId.cycleId of current
microsecondsSinceEpoch
and adds instanceId and instanceCounter to the end of the String. UnitId.units is used as an input. -
randomFromSequence(
int length, String sequence) → String -
Returns random String with given
length
of chars formsequence
. -
randomId(
{int length = 8, String sequence = az}) → String -
Returns random String with given
length
and settings.