dart_id 2.0.1 dart_id: ^2.0.1 copied to clipboard
Easy way of creating ids in dart.
import 'package:dart_id/dart_id.dart';
void main() {
// 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);
}