username_gen 1.0.2 username_gen: ^1.0.2 copied to clipboard
This is a simple package to create random usernames. To user it simply make these commands
username_gen #
Random username generator #
This is a simple package to create random usernames. To use it simply make these commands, ported from Javascript l
import 'package:username_gen/username_gen.dart';
var username = UsernameGen.gen(); // sharpened-whiskey87
//OR
final username = UsernameGen().generate(); // sharpened-whiskey87
If you want to set an array of name (nouns) and or adjectives use these commands and also if you want to use a different seperator commands
import 'package:username_gen/username_gen.dart';
final username = UsernameGen.gen(
data: UsernameGenData(
names: ['new names'],
adjectives: ['new adjectives'],
),
seperator: '_'
); // pink-harmonica17
//OR
final username = UsernameGen()
..setNames(['new names'])
..setSeperator('_')
..setAdjectives(['new adjectives'])
..generate(); // pink-harmonica17