curriculumLevels function
Implementation
@riverpod
Future<List<CurriculumLevel>> curriculumLevels(Ref ref, String domainId) async {
final ds = ref.watch(supabaseDatasourceProvider);
final models = await ds.getLevelsForDomain(domainId);
return models.map((m) => m.toEntity()).toList();
}