foregroundNotificationConfig property
If this is set then the services is started as a Foreground service with a persistent notification showing the user that the service will continue running in the background.
Implementation
final ForegroundNotificationConfig? foregroundNotificationConfig;