Idgen dart

This commit is contained in:
2024-10-19 14:31:02 -05:00
parent 12a701e1c5
commit 3745b39726
12 changed files with 676 additions and 24 deletions

View File

@ -0,0 +1,11 @@
// Import the package
import 'package:teamhydra_idgen/teamhydra_idgen.dart';
void main() async {
IDGen idgen = IDGen(username: 'your_username', token: 'your_token');
// Generate a new ID, in this example we are generating a UUID V4
IDGenResponse uuid =
await idgen.generateUUIDV4(); // all generations are async
print('Generated UUID: ${uuid.id}'); // print the generated ID
}