stopForeground static method
Stops a foreground service.
If the foreground service was not started, this function will do nothing.
It is sufficient to call this method once to stop the foreground service, even if startAndroidForegroundService was called multiple times.
On any platform other than Android, this is a no-op and does nothing, so it is safe to call it without a platform check.
Implementation
static Future<void> stopForeground(int id) async {
//no-op on web
}