ShortUuid class
Constructors
- ShortUuid()
-
const
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
-
generate(
) → String -
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
Static Methods
-
enlargeUUID(
String shortId, Translator translator) → String - Translate back to hex and turn back into UUID format, adding dashes.
-
getShortIdLength(
dynamic alphabetLength) → int - Calculate the length of the shortened id.
-
init(
[String? toAlphabet, PaddingParams? options]) → Convertor - Initialize the default translator.
-
makeConvertor(
[String? toAlphabet, PaddingParams? options]) → Convertor - Create a custom convertor using a specified alphabet.
-
shortenUUID(
String longId, Translator translator, [PaddingParams? paddingParams]) → String - Takes a UUID, strips the dashes, and translates.
Constants
- constants → const _Constants