MultipartForm class final

The decoded parts of a multipart/form-data body.

Constructors

MultipartForm(Map<String, UploadedFile> parts)
Wraps decoded parts.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
parts Map<String, UploadedFile>
Every part, keyed by form field name. Repeated names keep the last part.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

field<T>(String name) Result<T, Rejection>
Reads part name as text, coerced to T.
file(String name) Result<UploadedFile, Rejection>
Reads part name as a file.
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