downloadMaterial abstract method
- MaterialRefDto material,
- String directory, {
- CancelToken? cancelToken,
- ProgressCallback? onReceiveProgress,
Resolves fresh access information and downloads a file into directory.
Keeps course selection locked until the transfer and partial-file cleanup finish. Preserves the required Referer and authentication cookies. Throws UnsupportedError for iStream resources. The caller owns cleanup of successfully downloaded files.
Implementation
Future<MaterialFileDto> downloadMaterial(
MaterialRefDto material,
String directory, {
CancelToken? cancelToken,
ProgressCallback? onReceiveProgress,
});