ServiceStartOptions constructor

const ServiceStartOptions({
  1. int? serviceId,
  2. List<ForegroundServiceTypes>? serviceTypes,
  3. required AndroidNotificationOptions androidNotificationOptions,
  4. required IOSNotificationOptions iosNotificationOptions,
  5. required ForegroundTaskOptions foregroundTaskOptions,
  6. required String notificationContentTitle,
  7. required String notificationContentText,
  8. NotificationIcon? notificationIcon,
  9. List<NotificationButton>? notificationButtons,
  10. String? notificationInitialRoute,
  11. Function? callback,
})

Implementation

const ServiceStartOptions({
  this.serviceId,
  this.serviceTypes,
  required this.androidNotificationOptions,
  required this.iosNotificationOptions,
  required this.foregroundTaskOptions,
  required this.notificationContentTitle,
  required this.notificationContentText,
  this.notificationIcon,
  this.notificationButtons,
  this.notificationInitialRoute,
  this.callback,
});