getStarterEnrollmentIds method
Ids of the starter curricula the current user has opted into.
Implementation
Future<Set<String>> getStarterEnrollmentIds() async {
final userId = _client.auth.currentUser?.id;
if (userId == null) return <String>{};
final response = await _client
.from('user_starter_enrollments')
.select('domain_id')
.eq('user_id', userId);
return (response as List<dynamic>)
.map((row) => (row as Map<String, dynamic>)['domain_id'] as String)
.toSet();
}