getGroup method

List<PowerMapLayerItem>? getGroup(
  1. String groupKey
)

Get items for a specific group (e.g., 'city', 'transport').

Implementation

List<PowerMapLayerItem>? getGroup(String groupKey) {
  try {
    return _catalog.firstWhere((g) => g.key == groupKey).items;
  } catch (_) {
    return null;
  }
}