MultipartFile class
A platform-independent file abstraction. The MultipartRequest accepts files of this type.
Constructors
-
MultipartFile(Stream<
List< byteStream, int length, {MediaType? contentType, String? filename})int> > -
Construct a MultipartFile by supplying the file contents and the file
length. Optionally include a filename and content-type.
factory
Properties
-
byteStream
→ Stream<
List< int> > -
File contents as a stream of chunks of bytes.
final
- contentType → MediaType
-
File content-type. Defaults to "application/octet-stream".
no setter
- filename → String?
-
Filename.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
Length of the file contents.
final
- 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