getMaterialDownload method
- CourseMaterial material
Resolves current access information and caches only the material type.
Implementation
Future<MaterialDto> getMaterialDownload(CourseMaterial material) async {
final reference = await _materialReference(material);
final access = await _authRepository.withAuth(
() => _iSchoolPlusService.getMaterial(reference),
sso: [.iSchoolPlusService],
);
await _storeMaterialClassification(material, access.streamable);
return access;
}