canResume method

  1. @override
Future<bool> canResume(
  1. String id
)
override

Whether the partial data of id can still be resumed, also after a relaunch: a failed download whose data the downloader kept, or a part file an earlier process left (restore).

Implementation

@override
Future<bool> canResume(String id) async {
  calls.add('canResume $id');
  return canResumeResult ?? kept.contains(id);
}