stopForegroundService method

  1. @override
Future<bool> stopForegroundService()
override

Stop the foreground service for notification polling.

Returns true if the service was stopped successfully.

Implementation

@override
Future<bool> stopForegroundService() async {
  final result = await methodChannel.invokeMethod<bool>(
    'stopForegroundService',
  );
  return result ?? false;
}