stopMovement method

  1. @override
Future<bool> stopMovement()
override

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;
  }
}