dart_id 1.0.0 dart_id: ^1.0.0 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().generate(
idLength: 20,
allowCapitalLetters: true,
allowNumbers: true,
allowSmallLetters: true,
allowSymbols: false,
swapParts: true,
);
print(id);
DateTime createdAt = DartID().parseId(id);
print(createdAt);
}