Skip to content
Permalink
abca1f7c45
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
12 lines (10 sloc) 427 Bytes
// Import the package
import 'package:teamhydra_id_generator/teamhydra_idgen.dart';
void main() async {
IDGen idgen = IDGen(username: 'your_username', token: 'your_token');
// A more complex example can be generating a new IDs with a specific alphabet
// and length
IDGenResponse newID = await idgen.generateNanoID(
alphabet: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789', size: 20);
print('New ID: ${newID.id}');
}