dart_random_choice 0.2.0 copy "dart_random_choice: ^0.2.0" to clipboard
dart_random_choice: ^0.2.0 copied to clipboard

A library for generating a random choice from an iterable.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add dart_random_choice

With Flutter:

 $ flutter pub add dart_random_choice

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  dart_random_choice: ^0.2.0

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

Import it

Now in your Dart code, you can use:

import 'package:dart_random_choice/dart_random_choice.dart';
14
likes
130
pub points
78%
popularity

Publisher

verified publisherkirocodes.dev

A library for generating a random choice from an iterable.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on dart_random_choice