uid 0.1.1 copy "uid: ^0.1.1" to clipboard
uid: ^0.1.1 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.1.1

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';
11
likes
150
points
317
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