stopBackgroundService method
Stop background service
Implementation
@override
Future<bool> stopBackgroundService() async {
try {
final result =
await methodChannel.invokeMethod<bool>('stopBackgroundService');
_isBackgroundServiceRunning = !(result ?? true);
return result ?? false;
} on PlatformException catch (e) {
throw MCPBackgroundExecutionException(
'Failed to stop background service: ${e.message}', e.details);
}
}