WillStartForegroundTask constructor

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

Constructs an instance of WillStartForegroundTask.

Implementation

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