flt_worker 0.1.0
flt_worker: ^0.1.0 copied to clipboard
The flt_worker plugin allows you to schedule and execute Dart background tasks, based on the WorkManager and the BackgroundTasks APIs, for Android and iOS 13+ respectively.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flt_worker
copied to clipboard
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flt_worker: ^0.1.0
copied to clipboard
Alternatively, 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:flt_worker/flt_worker.dart';
copied to clipboard