uuid 1.0.0 copy "uuid: ^1.0.0" to clipboard
uuid: ^1.0.0 copied to clipboard

outdatedDart 1 only

RFC4122 (v1, v4, v5) UUID Generator and Parser for all Dart platforms (Web, VM, Flutter)

example/example.dart

import 'package:uuid/uuid.dart';

void main() {
  var uuid = new Uuid();

  // Generate a v1 (time-based) id
  uuid.v1(); // -> '6c84fb90-12c4-11e1-840d-7b25c5ee775a'

  // Generate a v4 (random) id
  uuid.v4(); // -> '110ec58a-a0f2-4ac4-8393-c866d813b8d1'

  // Generate a v5 (namespace-name-sha1-based) id
  uuid.v5(Uuid.NAMESPACE_URL,
      'www.google.com'); // -> 'c74a196f-f19d-5ea9-bffd-a2742432fc9c'
}
2.45k
likes
0
points
6.59M
downloads

Publisher

verified publisheryuli.dev

Weekly Downloads

RFC4122 (v1, v4, v5) UUID Generator and Parser for all Dart platforms (Web, VM, Flutter)

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

convert, crypto

More

Packages that depend on uuid