get_random_from_list 0.1.0 copy "get_random_from_list: ^0.1.0" to clipboard
get_random_from_list: ^0.1.0 copied to clipboard

discontinuedreplaced by: list_utilities
outdated

An extension method for the List class that retrieves a random element from the list.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add get_random_from_list

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

dependencies:
  get_random_from_list: ^0.1.0

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

Import it

Now in your Dart code, you can use:

import 'package:get_random_from_list/get_random_from_list.dart';
0
likes
30
pub points
0%
popularity

Publisher

verified publisherjamesalex.dev

An extension method for the List class that retrieves a random element from the list.

Repository (GitHub)
View/report issues

License

BSD-2-Clause (LICENSE)

More

Packages that depend on get_random_from_list