pause static method

Future<void> pause({
  1. required String taskId,
})

Pauses a running download task with id taskId.

Implementation

static Future<void> pause({required String taskId}) async {
  assert(_initialized, 'plugin flutter_downloader is not initialized');

  try {
    return await _channel.invokeMethod('pause', {'task_id': taskId});
  } on PlatformException catch (e) {
    _log(e.message);
  }
}