getDiseaseLearningContent function
- @Riverpod(keepAlive: true)
- GetDiseaseLearningContentRef ref,
- {required String chapterId}
Implementation
@Riverpod(keepAlive: true)
Future<LearningContentsDto> getDiseaseLearningContent(
GetDiseaseLearningContentRef ref, {
required String chapterId,
}) async {
return await ref
.read(getDiseaseLearningContentRepositoryProvider)
.exec(chapterId);
}