starterDomains function
- Ref ref
The curated starter catalog (migration 072). Starters are public by
construction, so this resolves for a brand-new learner who owns nothing.
Implementation
@riverpod
Future<List<DomainEntity>> starterDomains(Ref ref) async {
final ds = ref.watch(supabaseDatasourceProvider);
final models = await ds.getStarterDomains();
return models.map((m) => m.toEntity()).toList();
}