DownloadStartRequest class

Class representing a download request of the WebView used by the event WebView.onDownloadStartRequest.


DownloadStartRequest({required Uri url, String? userAgent, String? contentDisposition, String? mimeType, required int contentLength, String? suggestedFilename, String? textEncodingName})


contentDisposition String?
Content-disposition http header, if present.
getter/setter pair
contentLength int
The file size reported by the server.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
mimeType String?
The mimetype of the content reported by the server.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suggestedFilename String?
A suggested filename to use if saving the resource to disk.
getter/setter pair
textEncodingName String?
The name of the text encoding of the receiver, or null if no text encoding was specified.
getter/setter pair
url Uri
The full url to the content that should be downloaded.
getter/setter pair
userAgent String?
the user agent to be used for the download.
getter/setter pair


noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toJson() Map<String, dynamic>
toMap() Map<String, dynamic>
toString() String
A string representation of this object.


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

Static Methods

fromMap(Map<String, dynamic>? map) DownloadStartRequest?