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