imitatio 1.4.0 copy "imitatio: ^1.4.0" to clipboard
imitatio: ^1.4.0 copied to clipboard

Generate different types of fake data in multiple languages.

example/main.dart

import 'dart:io';

import 'package:imitatio/imitatio.dart';

void main() {
  // Generate data with default locale (Locale.en)
  final person = const Person();
  stdout.writeln(person.fullName());
  stdout.writeln(person.email(domains: ['example.com']));
  stdout.writeln(person.phoneNumber(mask: "1-2##-3##-4##5"));

  // Generate data for specific locale
  final dePerson = const Person(locale: Locale.de);
  stdout.writeln(dePerson.fullName());
  stdout.writeln(dePerson.occupation);
  stdout.writeln(dePerson.university);

  // Generate data with specific seed (internal state of random generator)
  final seeded1 = const Person(seed: 420);
  final seeded2 = const Person(seed: 420);
  stdout.writeln(seeded1.fullName());
  stdout.writeln(seeded2.fullName());
}
0
likes
160
points
149
downloads

Publisher

unverified uploader

Weekly Downloads

Generate different types of fake data in multiple languages.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

crypto, os_detect

More

Packages that depend on imitatio