Skip to content

Commit

Permalink
Fix example Callback Annotation
Browse files Browse the repository at this point in the history
Co-authored-by: ColinSchmale <[email protected]>
  • Loading branch information
ColinSchmale and cs-nuuk authored Jan 24, 2023
1 parent 7743ccb commit 7cf855e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import 'package:home_widget/home_widget.dart';
import 'package:workmanager/workmanager.dart';

/// Used for Background Updates using Workmanager Plugin
@pragma("vm:entry-point")
void callbackDispatcher() {
Workmanager().executeTask((taskName, inputData) {
final now = DateTime.now();
Expand Down

0 comments on commit 7cf855e

Please sign in to comment.