UploadedFile class

Constructors

UploadedFile.empty()
factory
UploadedFile.fromBytes({required String filename, required Uint8List bytes, required String contentType})

Properties

bytes Future<Uint8List>
Get the file content as bytes
no setter
contentType String
final
filename String
final
hashCode int
The hash code for this object.
no setterinherited
isLengthKnown bool
Check if length is known without calculating it
no setter
isValid bool
no setter
length Future<int>
Get the length
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
string Future<String>
Get the file content as string
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save(String path) Future<File>
Save the file to the specified path you must know how dart projects relate to your root folder to know exactly where to save your images use Directory("lib/src/") to hook into your codebase
savePublic({bool autoName = true}) Future<File>
streamTo(StreamSink<List<int>> sink) Future<void>
Stream the file content to a StreamSink (memory efficient)
toString() String
A string representation of this object.
override

Operators

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