uid 0.2.0
uid: ^0.2.0 copied to clipboard
Generate a unique ID from datetime combined with a random string at a random position, and generate random barcode numbers (5 to 13 characters) using numbers or capital letters.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add uidThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
uid: ^0.2.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:uid/uid.dart';