cachedDevicesProvider top-level property

AutoDisposeProvider<AsyncValue<List<Device>>> cachedDevicesProvider
final

Provides a cached list of devices

Apps should provide their implementation of this cached devices list, based on the list of devices available for the currently logged-in user.

For example, a dealer app may return a fleet of hundreds of devices based on the currently logged-in user's dealership as the device list. For a homeowner app, it may return just the user's handful list of devices within their own home.

Implementation

final cachedDevicesProvider = Provider.autoDispose<AsyncValue<List<Device>>>(
  (ref) => throw UnimplementedCachedDevicesError(),
);