random_data 1.5.9

  • Readme
  • Changelog
  • Installing
  • 50

Random generator #

Generates random numbers, dates, strings, characters, names, durations, etc.


  • Random names
  • Random phone numbers
  • Random Countries
  • Random Cities
  • Random email addresses

1.5.9 #

  • Removed maxPrecision on DoubleGen

1.5.8 #

  • Bug fix

1.5.6 #

  • Added maxPrecision to double generator

1.5.5 #

  • Added names, urls, phones, emails, countries, etc generators

1.5.4 #

  • Harmonized DoubleGen signature

1.5.2 #

  • String generator

1.5.1 #

  • int, double, date, duration, oneof and char generators

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  random_data: ^1.5.9

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:random_data/random_data.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Mar 27, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Health issues and suggestions

Document public APIs. (-0.78 points)

137 out of 138 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Maintenance suggestions

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and random_data.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.0 <3.0.0
english_words ^3.1.5 3.1.5
faker ^1.1.0 1.2.1
random_words ^1.0.2 1.0.2
string_unescape ^1.5.1 1.5.1
Transitive dependencies
charcode 1.1.3
collection 1.14.12
meta 1.1.8
path 1.6.4
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
Dev dependencies
pedantic ^1.0.0
test ^1.0.0