restartService method

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

Implementation

@override
Future<bool> restartService() async {
  if (await isRunningService) {
    return await methodChannel.invokeMethod('restartService');
  }
  return false;
}