DownloadOptions class

Constructors

DownloadOptions({required String url, String? filename, FilenameConflictAction? conflictAction, bool? saveAs, HttpMethod? method, List<HeaderNameValuePair>? headers, String? body})
DownloadOptions.fromJS(DownloadOptions _wrapped)

Properties

body String?
Post body.
getter/setter pair
conflictAction FilenameConflictAction?
The action to take if filename already exists.
getter/setter pair
filename String?
A file path relative to the Downloads directory to contain the downloaded file, possibly containing subdirectories. Absolute paths, empty paths, and paths containing back-references ".." will cause an error. onDeterminingFilename allows suggesting a filename after the file's MIME type and a tentative filename have been determined.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers List<HeaderNameValuePair>?
Extra HTTP headers to send with the request if the URL uses the HTTPs protocol. Each header is represented as a dictionary containing the keys name and either value or binaryValue, restricted to those allowed by XMLHttpRequest.
getter/setter pair
method HttpMethod?
The HTTP method to use if the URL uses the HTTPS protocol.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saveAs bool?
Use a file-chooser to allow the user to select a filename regardless of whether filename is set or already exists.
getter/setter pair
toJS → DownloadOptions
no setter
url String
The URL to download.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited