background_timer_package 1.0.0
background_timer_package: ^1.0.0 copied to clipboard
A Flutter timer that persists and calculates elapsed time when the app is in the background or terminated.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add background_timer_packageThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
background_timer_package: ^1.0.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:background_timer_package/background_timer_package.dart';