canResume abstract method

Future<bool> canResume(
  1. String taskId
)

Checks if a download task can be resumed

Parameters:

  • taskId: ID of the download task

Returns true if:

  • Task exists
  • Partial file exists
  • Server supports resume (ETag/Range headers)

Implementation

Future<bool> canResume(String taskId);