deleteLocation method

Future<void> deleteLocation(
  1. String locationName, {
  2. Map<String, dynamic>? extra,
})

Delete a saved location. The location is also removed from every route that references it.

// Example:
await myNavigationService.deleteLocation('kitchen');

For more information, see the navigation service docs.

Implementation

Future<void> deleteLocation(String locationName, {Map<String, dynamic>? extra}) async {
  final request = DeleteLocationRequest(name: name, locationName: locationName, extra: extra?.toStruct());
  await client.deleteLocation(request, options: callOptions);
}