random_datetime 1.0.4 copy "random_datetime: ^1.0.4" to clipboard
random_datetime: ^1.0.4 copied to clipboard

Get randomized DateTime objects. The plugin allows you to add time-unit wise limitations to the randomized DateTime. Ex: Randomized DateTime where time is between 7 to 10 PM.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add random_datetime

With Flutter:

 $ flutter pub add random_datetime

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

dependencies:
  random_datetime: ^1.0.4

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:random_datetime/random_datetime.dart';
0
likes
160
points
56
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Get randomized DateTime objects. The plugin allows you to add time-unit wise limitations to the randomized DateTime. Ex: Randomized DateTime where time is between 7 to 10 PM.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on random_datetime