dart_id 2.0.2 copy "dart_id: ^2.0.2" to clipboard
dart_id: ^2.0.2 copied to clipboard

Easy way of creating ids in dart.

example/dart_id_example.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,
    allowDateTime: true,
  ).generate();
  print(id);

  DateTime createdAt = DartID().parseId(id);
  print(createdAt);
}
6
likes
140
points
77
downloads

Publisher

unverified uploader

Weekly Downloads

Easy way of creating ids in dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on dart_id