MyoroFilePickerPlatformFile class

Wrapper model of PlatformFile so that the MFL user doesn't need to download file_picker in their project.

Annotations

Constructors

MyoroFilePickerPlatformFile.new({String? path, required String name, required int size, Uint8List? bytes, Stream<List<int>>? readStream, String? identifier})
MyoroFilePickerPlatformFile.fromPlatformFile(PlatformFile platformFile)
factory

Properties

bytes Uint8List?
Byte data for this file. Particularly 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.
finalinherited
extension String?
File extension for this file.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
identifier String?
The platform identifier for the original file, refers to an Uri on Android and to a NSURL on iOS. Is set to null on all other platforms since those are all already referencing the original file content.
finalinherited
name String
File name including its extension.
finalinherited
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.
finalinherited
readStream Stream<List<int>>?
File content as stream
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
The file size in bytes. Defaults to 0 if the file size could not be determined.
finalinherited
xFile → XFile
Retrieves this as a XFile
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