Skip to main content

orbit_task_annotations 0.0.1+2 copy "orbit_task_annotations: ^0.0.1+2" to clipboard
orbit_task_annotations: ^0.0.1+2 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!");
}
0
likes
0
points
11
downloads

Publisher

unverified uploader

Weekly Downloads

Annotation library for orbit_task, allowing easy designation of background task handler functions.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on orbit_task_annotations