FileItem class

Represents a single file in a multipart/form-data upload

Constructors

FileItem({required String path, String field = 'file'})
Default constructor. The field property is set to file by default.

Properties

field String
The field name will be used during HTTP multipart/form-data uploads. It is ignored for binary file uploads.
final
hashCode int
The hash code for this object.
no setterinherited
path String
Path to the local file. It is the developers reponsibility to ensure the path can be accessed.
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
toJson() Map<String, dynamic>
JSON representation for sharing with the underlying platform.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited