getLocation method
Get a saved Location by name. This does not return the robot's current position; use getPosition for that.
// Example:
final location = await myNavigationService.getLocation('kitchen');
For more information, see the navigation service docs.
Implementation
Future<Location> getLocation(String locationName, {Map<String, dynamic>? extra}) async {
final request = GetLocationRequest(name: name, locationName: locationName, extra: extra?.toStruct());
final response = await client.getLocation(request, options: callOptions);
return response.location;
}