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.

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);

As easy as that #

6
likes
140
points
82
downloads

Publisher

unverified uploader

Weekly Downloads

Easy way of creating ids in dart.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on dart_id