resume method

  1. @override
Future<void> resume(
  1. String taskId
)
override

Resumes a previously interrupted download

Throws:

  • UnsupportedError if task cannot be resumed
  • NetworkException for network errors

Implementation

@override
Future<void> resume(String taskId) async {
  // Resume is not supported on web
  throw UnsupportedError(
    'Resume is not supported on web platform. '
    'Downloads are instant (URL registration only).',
  );
}