orbit_task_annotations 0.0.1+5
orbit_task_annotations: ^0.0.1+5 copied to clipboard
Annotation library for orbit_task, allowing easy designation of background task handler functions.
orbit_task_annotations #
Annotation library for the orbit_task plugin.
Usage #
This package provides the @orbitTask annotation used to mark static top-level functions for background execution.
import 'package:orbit_task_annotations/orbit_task_annotations.dart';
@orbitTask
void myBackgroundFunction(String taskName, Map<String, dynamic> data) {
print("Task $taskName executd!");
}