homeDevicesProvider top-level property

AutoDisposeProvider<AsyncValue<List<Device>>> homeDevicesProvider
final

Implementation

final homeDevicesProvider = Provider.autoDispose<AsyncValue<List<Device>>>(
  (ref) => ref.watch(homesProvider).mapValue(
        (homes) => homes.expand((home) => home.devices).toList(),
      ),
);