init static method

void init({
  1. required AndroidNotificationOptions androidNotificationOptions,
  2. required IOSNotificationOptions iosNotificationOptions,
  3. required ForegroundTaskOptions foregroundTaskOptions,
})

Initialize the FlutterForegroundTask.

Implementation

static void init({
  required AndroidNotificationOptions androidNotificationOptions,
  required IOSNotificationOptions iosNotificationOptions,
  required ForegroundTaskOptions foregroundTaskOptions,
}) {
  _androidNotificationOptions = androidNotificationOptions;
  _iosNotificationOptions = iosNotificationOptions;
  _foregroundTaskOptions = foregroundTaskOptions;
  _initialized = true;
}