randomer 0.0.1 copy "randomer: ^0.0.1" to clipboard
randomer: ^0.0.1 copied to clipboard

Dart 1 only

Randomer helps to you for generate what do you need

randomer #

Randomer helps to you for generate what do you need.

Created from templates made available by Stagehand under a BSD-style license.

Usage #

A simple usage example:

import 'package:randomer/randomer.dart';

main() {
  print(random([true, false]));
  print(random([0, 1, 2], take: 2));
  
  print(capitalize('test test')); // Test test
  
  print(text()); // Random text
  print(text(words: 20));
  print(text(join: false)); // Will return the List
  print(text(text: ['a', 'b', 'c']));
}

Also, you can use the object for calling functions:

import 'package:randomer/randomer.dart';

main() {
  print(randomer.random([true, false]));
  print(randomer.random([0, 1, 2], take: 2));
  
  print(randomer.capitalize('test test')); // Test test
  
  print(randomer.text()); // Random text
  print(randomer.text(words: 20));
  print(randomer.text(join: false)); // Will return the List
  print(randomer.text(text: ['a', 'b', 'c']));
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Randomer helps to you for generate what do you need

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

More

Packages that depend on randomer