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