stopTracking method

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

Stop tracking - matches your React Native stopTracking

Implementation

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