stopBackgroundService method
Implementation
@override
Future<bool> stopBackgroundService(
ServiceType type, {
String? callCid,
}) async {
if (await isBackgroundServiceRunning(type, callCid: callCid) == true) {
return await methodChannel.invokeMethod(
'stopBackgroundService',
{
'type': type.name,
if (callCid != null) 'callCid': callCid,
},
);
}
return false;
}