pause static method
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);
}
}