MultipartFileRecreatable class

A MultipartFile class which support cloning of the file for re-submission of POST request.

Constructors

MultipartFileRecreatable(String filePath, String field, Stream<List<int>> stream, int length, {String? filename, MediaType? contentType})
MultipartFileRecreatable.fromFileSync(String filePath)
Creates a new MultipartFileRecreatable from a file specified by the filePath.
factory

Properties

contentType → MediaType
The content-type of the file.
finalinherited
field String
The name of the form field for the file.
finalinherited
filename String?
The basename of the file.
finalinherited
filePath String
final
hashCode int
The hash code for this object.
no setterinherited
isFinalized bool
Whether finalize has been called.
no setterinherited
length int
The size of the file in bytes.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clone() MultipartFileRecreatable
Make a clone of this MultipartFileRecreatable.
finalize() → ByteStream
inherited
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