isPendingExerciseFamily top-level property

AutoDisposeProviderFamily<bool, int> isPendingExerciseFamily
final

Provider that returns true if there is a pending exercise that is expected to be run for the device with the given ID.

Implementation

final isPendingExerciseFamily =
    Provider.autoDispose.family<bool, int>((ref, int id) {
  final notifierState = ref.watch(pendingExerciseNotifierProvider);
  return notifierState.containsKey(id);
});