unique_name_generator 1.0.0 unique_name_generator: ^1.0.0 copied to clipboard
Random name generator based on dictionaries.
example/unique_name_generator_example.dart
import 'package:unique_name_generator/unique_name_generator.dart';
void main() {
final hashtag = ListDictionary(['#']);
final numbers = NumberDictionary(1000, 9999);
var ung = UniqueNameGenerator(
dictionaries: [adjectives, animals, hashtag, numbers],
style: NameStyle.capital,
separator: '',
);
List<String> names = List.generate(10, (index) => ung.generate());
print(names);
}