getReadingQuestions method
- String topicId
Implementation
Future<List<ReadingQuestionModel>> getReadingQuestions(String topicId) async {
final response = await _client
.from('reading_questions')
.select()
.eq('topic_id', topicId)
.order('sort_order');
return (response as List)
.map((e) => ReadingQuestionModel.fromJson(e as Map<String, dynamic>))
.toList();
}