listZones method

Future<List<Zone>> listZones({
  1. String? type,
  2. Map<String, dynamic>? extra,
})

Get the Zones on the active map, optionally filtered by type (keepout or speed_limit).

// Example:
final zones = await myNavigationService.listZones(type: 'keepout');

For more information, see the navigation service docs.

Implementation

Future<List<Zone>> listZones({String? type, Map<String, dynamic>? extra}) async {
  final request = ListZonesRequest(name: name, type: type, extra: extra?.toStruct());
  final response = await client.listZones(request, options: callOptions);
  return response.zones;
}