stopBackgroundService method

  1. @override
Future<bool> stopBackgroundService(
  1. ServiceType type
)
override

Implementation

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