MultipartRequest class Null safety

Inheritance

Constructors

MultipartRequest(String method, Uri url, {void onProgress(int bytes, int totalBytes)?})

Properties

client Client
Creates a new MultipartRequest.
read / write
contentLength int
The total length of the request body, in bytes.
read / writeinherited
fields Map<String, String>
The form fields to send for this request.
finalinherited
files List<MultipartFile>
The list of files to upload for this request.
finalinherited
finalized bool
Whether finalize has been called.
read-onlyinherited
followRedirects bool
Whether the client should follow redirects while resolving this request.
read / writeinherited
hashCode int
The hash code for this object.
read-onlyinherited
headers Map<String, String>
finalinherited
maxRedirects int
The maximum number of redirects to follow when followRedirects is true.
read / writeinherited
method String
The HTTP method of the request.
finalinherited
onProgress → (void Function(int bytes, int totalBytes)?)
final
persistentConnection bool
Whether a persistent connection should be maintained with the server.
read / writeinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
url Uri
The URL to which the request will be sent.
finalinherited

Methods

cancel() → void
finalize() ByteStream
Freezes all mutable fields and returns a single-subscription ByteStream that will emit the request body.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
onDone<T>(Stream<T> stream, void onDone()) Stream<T>
send() Future<StreamedResponse>
Sends this request.
override
toString() String
A string representation of this object.
inherited

Operators

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