certificationDetail function

  1. @riverpod
Future<Certification> certificationDetail(
  1. Ref<Object?> ref,
  2. String certificationId
)

Implementation

@riverpod
Future<Certification> certificationDetail(
  Ref ref,
  String certificationId,
) async {
  final ds = ref.watch(orgDatasourceProvider);
  final model = await ds.getCertification(certificationId);
  return model.toEntity();
}