UploadedFile class final

One decoded part of a multipart body.

Constructors

UploadedFile({required String name, required Uint8List bytes, String? filename, String? contentType})
Creates one part.
const

Properties

asText → String
The part content decoded as UTF-8 text.
no setter
bytes → Uint8List
The raw part content.
final
contentType → String?
The part's own content-type, when it declared one.
final
filename → String?
The client-supplied file name, when the part was a file.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
The form field name.
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