WillStartForegroundTask constructor
const
WillStartForegroundTask({
- Key? key,
- required AsyncValueGetter<
bool> onWillStart, - required AndroidNotificationOptions androidNotificationOptions,
- required IOSNotificationOptions iosNotificationOptions,
- required ForegroundTaskOptions foregroundTaskOptions,
- 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,
required this.iosNotificationOptions,
required this.foregroundTaskOptions,
required this.notificationTitle,
required this.notificationText,
this.callback,
required this.child,
}) : super(key: key);