vlsid 2.0.0 copy "vlsid: ^2.0.0" to clipboard
vlsid: ^2.0.0 copied to clipboard

This is a variable length sortable id generator.

example/vlsid_example.dart

import 'package:vlsid/vlsid.dart';

void main() {
  // Create a factory for ids
  final vlsid = Vlsid();

  // Generate an id from the factory
  final id1 = vlsid.nextId();

  // Both can be done in one line
  final id2 = Vlsid().nextId();

  print(id1); //_MorKCLMA7VOQWy
  print(id2); //_MorKCLVDBFTbQM
}
2
likes
150
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

This is a variable length sortable id generator.

Repository (GitHub)

Topics

#id #uuid #identifier #sortable-id #nano-id

Documentation

API reference

License

MIT (license)

More

Packages that depend on vlsid