canResume method

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

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

@override
Future<bool> canResume(String taskId) async {
  // Resume is not supported on web
  // Downloads are instant (just URL registration)
  return false;
}