MultipartBodyBuilder class

Assembles a multipart/form-data body from fields + files.

This is an internal utility — consumers interact via NetworkTransferClient.

Constructors

MultipartBodyBuilder()

Properties

boundary String
final
contentType String
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addField(String name, String value) → void
addFile(UploadFile file, Uint8List bytes) → void
build() → (Uint8List, int)
Assembles the body and returns the raw bytes + total length.
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