getDiseaseLearningContent function

  1. @Riverpod(keepAlive: true)
Future<LearningContentsDto> getDiseaseLearningContent(
  1. GetDiseaseLearningContentRef ref,
  2. {required String chapterId}
)

Implementation

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