stopMovement method
Implementation
@override
Future<bool> stopMovement() async {
try {
final result = await methodChannel.invokeMethod<bool>('stopMovement');
return result ?? false;
} on PlatformException catch (e) {
debugPrint('Error calling stopMovement: ${e.message}');
return false;
}
}