MultipartFileRecreatable class

Constructors

MultipartFileRecreatable(Stream<List<int>> stream, int length, String? filename, String filePath, {MediaType? contentType})

Properties

contentType → MediaType?
The content-type of the file. Defaults to application/octet-stream.
finalinherited
filename String?
The basename of the file. May be null.
finalinherited
filePath String
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, List<String>>?
The additional headers the file has. May be null.
finalinherited
isFinalized bool
Whether finalize has been called.
no setterinherited
length int
The size of the file in bytes. This must be known in advance, even if this file is created from a ByteStream.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

finalize() Stream<List<int>>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recreate() MultipartFileRecreatable
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromFileSync(String filePath, {String? filename, MediaType? contentType}) MultipartFileRecreatable