stop static method

Future<bool> stop()

Implementation

static Future<bool> stop() async {
  try {
    if (await isRunning()) {
      _service.invoke('stopService');
    }
    return true;
  } catch (e) {
    return false;
  }
}