pendingExerciseModeFamily top-level property

AutoDisposeProviderFamily<ExerciseMode?, int> pendingExerciseModeFamily
final

Provider that returns the pending exercise mode for an exercise that was started on the app with the given ID.

Implementation

final pendingExerciseModeFamily =
    Provider.autoDispose.family<ExerciseMode?, int>((ref, int id) {
  final notifierState = ref.watch(pendingExerciseNotifierProvider);
  return notifierState[id]?.exerciseMode;
});