learningPathDetail function

  1. @riverpod
Future<LearningPath> learningPathDetail(
  1. Ref<Object?> ref,
  2. String pathId
)

Implementation

@riverpod
Future<LearningPath> learningPathDetail(Ref ref, String pathId) async {
  final ds = ref.watch(orgDatasourceProvider);
  final model = await ds.getLearningPath(pathId);
  return model.toEntity();
}