uid 0.0.2 copy "uid: ^0.0.2" to clipboard
uid: ^0.0.2 copied to clipboard

Generate a unique ID from datetime, convert it to millisecondsSinceEpoch, and combine it with a random position and a string.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add uid

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  uid: ^0.0.2

Alternatively, 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';
10
likes
160
points
479
downloads

Publisher

unverified uploader

Weekly Downloads

Generate a unique ID from datetime, convert it to millisecondsSinceEpoch, and combine it with a random position and a string.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on uid