FilePart class

Represents a file in a multipart request to upload.

Constructors

FilePart.new(String filePath, {String? filename, String? contentType})

Properties

contentType → String?
The content type of the file in the multipart request, e.g. 'image/jpeg'. If not specified, 'application/octet-stream' will be used.
final
filename → String?
The filename of the file in the multipart request. If not specified, the filename from filePath will be used.
final
filePath → String
The path to the file to be uploaded.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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