WillStartForegroundTask constructor
const
WillStartForegroundTask({
- Key? key,
- required AsyncValueGetter<
bool> onWillStart, - required AndroidNotificationOptions androidNotificationOptions,
- IOSNotificationOptions? iosNotificationOptions,
- ForegroundTaskOptions? foregroundTaskOptions,
- bool? printDevLog,
- required String notificationTitle,
- required String notificationText,
- Function? callback,
- 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);