emptyable_timer 0.0.1
emptyable_timer: ^0.0.1 copied to clipboard
A handy timer that can be empty rather than nullable. Emptyable timer can be checked if it is canceled. Otherwise, it is a regular timer.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add emptyable_timerWith Flutter:
$ flutter pub add emptyable_timerThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
emptyable_timer: ^0.0.1Alternatively, 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:emptyable_timer/emptyable_timer.dart';