cancelAll static method

Future<void> cancelAll()

Cancels all enqueued and running download tasks.

Implementation

static Future<void> cancelAll() async {
  assert(_initialized, 'plugin flutter_downloader is not initialized');

  try {
    return await _channel.invokeMethod('cancelAll');
  } on PlatformException catch (err) {
    _log(err.message);
  }
}