stopNativeTracking method

  1. @override
Future<void> stopNativeTracking()
override

Stops native location tracking.

Implementation

@override
Future<void> stopNativeTracking() async {
  try {
    await methodChannel.invokeMethod('stopTracking');
  } on PlatformException catch (e) {
    throw LocationPlatformException(
      message: e.message ?? 'Failed to stop tracking',
      code: e.code,
    );
  }
}