Visit us at www.nasriya.net.
A lightweight package to generate UUIDs on the go.
Made with ❤️ in Palestine 🇵🇸
Important
🌟 Support Our Open-Source Development! 🌟 We need your support to keep our projects going! If you find our work valuable, please consider contributing. Your support helps us continue to develop and maintain these tools.
Every contribution, big or small, makes a difference. Thank you for your generosity and support!
Generating UUID is never easier.
Add the package using Dart CLI:
dart pub add uuidxOr manually in pubspec.yaml:
dependencies:
uuidx: ^latest_versionimport 'package:uuidx/uuidx.dart'; // imported singleton instanceTo generate a UUIDs, call the method of the needed version whenever you need it:
// UUID v4 (random)
final idv4 = uuidx.v4.generate();
// UUID v4 (unique within instance)
final uniqueId = uuidx.v4.generateUnique();
// UUID v5 (deterministic)
final idv5 = uuidx.v5('nasriya.net', idv4);
print(idv4); // ⇨ 'f47ac10b-58cc-4372-a567-0e02b2c3d479'
print(idv5); // ⇨ deterministic UUID based on inputThank you!
Please read the license from here.
