random_data 1.5.9

  • Readme
  • Changelog
  • Installing
  • 50

Random generator #

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

TODO #

  • 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:


dependencies:
  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';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
50
Learn more about scoring.

We analyzed this package on Nov 8, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.0
  • pana: 0.12.21

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:random_data/random_data.dart.

Health issues and suggestions

Document public APIs. (-0.76 points)

124 out of 125 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.

Dependencies

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.1.1
random_words ^1.0.2 1.0.2
string_unescape ^1.5.1 1.5.1
Transitive dependencies
charcode 1.1.2
meta 1.1.8
path 1.6.4
source_span 1.5.5
string_scanner 1.0.5
term_glyph 1.1.0
Dev dependencies
pedantic ^1.0.0
test ^1.0.0