DownloadStartRequest class

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

Constructors

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

Properties

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

Methods

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

Operators

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

Static Methods

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