MultipartFileData class

Data for a multipart file upload in tests.

Example:

MultipartFileData(
  filename: 'photo.png',
  bytes: Uint8List.fromList([...]),
  contentType: 'image/png',
)

Constructors

MultipartFileData({required String filename, required Uint8List bytes, String? contentType})
Creates multipart file data.
const

Properties

bytes → Uint8List
The file content as bytes.
final
contentType → String?
The content type (MIME type) of the file.
final
filename → String
The filename to use in the multipart body.
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