campusMapFloorProvider top-level property

StreamProviderFamily<CampusMapFloorData, String> campusMapFloorProvider
final

Watches only the selected indoor layer and releases it when no longer shown.

Implementation

final campusMapFloorProvider = StreamProvider.autoDispose
    .family<CampusMapFloorData, String>((ref, layerName) {
      return ref.watch(campusMapRepositoryProvider).watchFloor(layerName);
    });