orbit_task_annotations 0.0.1+1
orbit_task_annotations: ^0.0.1+1 copied to clipboard
Annotations for the orbit_task package.
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!");
}