FileFrom class

File source.

This class helps to handle files from different sources and provide a MultipartFile object to be used in HTTP requests.

Constructors

FileFrom.base64(String base64, [String? contentType])
Get a file from base64 content.
factory
FileFrom.bytes(Uint8List bytes, [String? contentType])
Get a file from bytes.
factory
FileFrom.path(String path, [String? contentType])
Get a file from path.
factory

Properties

base64 String?
File base64 content.
final
bytes Uint8List?
File bytes.
final
contentType String?
final
hashCode int
The hash code for this object.
no setterinherited
path String?
File path. Have to be a valid absolute path.
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
toMultipartFile(String field) → MultipartFile
Convert to MultipartFile.
toString() String
A string representation of this object.
inherited

Operators

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