WillStartForegroundTask constructor

const WillStartForegroundTask({
  1. Key? key,
  2. required AsyncValueGetter<bool> onWillStart,
  3. required AndroidNotificationOptions androidNotificationOptions,
  4. required IOSNotificationOptions iosNotificationOptions,
  5. required ForegroundTaskOptions foregroundTaskOptions,
  6. required String notificationTitle,
  7. required String notificationText,
  8. Function? callback,
  9. required Widget child,
})

Constructs an instance of WillStartForegroundTask.

Implementation

const WillStartForegroundTask({
  Key? key,
  required this.onWillStart,
  required this.androidNotificationOptions,
  required this.iosNotificationOptions,
  required this.foregroundTaskOptions,
  required this.notificationTitle,
  required this.notificationText,
  this.callback,
  required this.child,
}) : super(key: key);