WillStartForegroundTask constructor

const WillStartForegroundTask({
  1. Key? key,
  2. required ValueGetter<bool> onWillStart,
  3. required AndroidNotificationOptions androidNotificationOptions,
  4. required 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,
  required this.iosNotificationOptions,
  this.foregroundTaskOptions,
  this.printDevLog,
  required this.notificationTitle,
  required this.notificationText,
  this.callback,
  required this.child,
})  : super(key: key);