versatile_timer 1.0.1 versatile_timer: ^1.0.1 copied to clipboard
VersatileTimer is designed to support many use cases where a stream of timed events is required. In addition to start, stop, pause, resume and changeSpeed, VersatileTimer offers a number of options t [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add versatile_timer
With Flutter:
$ flutter pub add versatile_timer
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
versatile_timer: ^1.0.1
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:versatile_timer/versatile_timer.dart';