resume method
Resumes a paused download, or a failed one whose partial data canResume reports, with the network rule it was started with; starts it again when it cannot resume. A resume that fails later on, because the kept data turned out unusable, fails with DownloadErrorCode.cannotResume.
Implementation
@override
Future<void> resume(String id) async {
calls.add('resume $id');
resumed.add(id);
kept.remove(id);
emit(ModelDownloadUpdate(id: id, state: ModelDownloadState.running));
}