cancel method

Future<NavigationStatus> cancel({
  1. Map<String, dynamic>? extra,
})

Stop all motion and discard both the active goal and any suspended goal.

// Example:
final status = await myNavigationService.cancel();

For more information, see the navigation service docs.

Implementation

Future<NavigationStatus> cancel({Map<String, dynamic>? extra}) async {
  final request = CancelRequest(name: name, extra: extra?.toStruct());
  final response = await client.cancel(request, options: callOptions);
  return response.status;
}