dart_id 2.0.2 dart_id: ^2.0.2 copied to clipboard
Easy way of creating ids in dart.
Dart ID #
this is a fast way to create ids with data inside them about when they are created
How to use #
// all these parameters are optional
String id = DartID(
idLength: 20,
allowCapitalLetters: true,
allowNumbers: true,
allowSmallLetters: true,
allowSymbols: false,
swapParts: true,
).generate();
print(id);
DateTime createdAt = DartID().parseId(id);
print(createdAt);