starterEnrollmentIds function

  1. @riverpod
Future<Set<String>> starterEnrollmentIds(
  1. Ref ref
)

Ids of the starters the learner has opted into. Drives the catalog's added/not-added state and the library's inclusion filter.

Implementation

@riverpod
Future<Set<String>> starterEnrollmentIds(Ref ref) async {
  final ds = ref.watch(supabaseDatasourceProvider);
  return ds.getStarterEnrollmentIds();
}