PlatformFile class

Constructors

PlatformFile({required String name, required int size, String? path, Uint8List? bytes, Stream<List<int>>? readStream})
const
PlatformFile.fromMap(Map data, {Stream<List<int>>? readStream})

Properties

bytes Uint8List?
Byte data for this file. Particurlarly useful if you want to manipulate its data or easily upload to somewhere else. Check here in the FAQ an example on how to use it to upload on web.
final
extension String?
File extension for this file.
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
File name including its extension.
final
path String?
The absolute path for a cached copy of this file. It can be used to create a file instance with a descriptor for the given path.
final
readStream Stream<List<int>>?
File content as stream
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
The file size in bytes.
final

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