stop static method

Future<bool> stop()

Stop location tracking

Implementation

static Future<bool> stop() async {
  try {
    final result = await _methodChannel.invokeMethod('stop');
    return result == true;
  } on PlatformException catch (e) {
    print('Error stopping location tracking: ${e.message}');
    return false;
  }
}