FileWrapper class

Wrapper around files picked using ZdsFilePicker.

Annotations

Constructors

FileWrapper(FilePickerOptions type, dynamic content)
Constructs a FileWrapper.
const

Properties

content → dynamic
The content of the picked file.
final
extension String?
Gets the extension of the picked file in lowercase- e.g: jpg, pdf.
no setter
hashCode int
The hash code for this object.
no setteroverride
True if the file is a link.
no setter
mimeType String?
Returns mimeType of the content if it is a valid file
no setter
name String?
Gets the name of the file.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type FilePickerOptions
The type of file wrapped.
final
xFilePath String
Gets the path of a file, if the file is XFile.
no setter

Methods

isImage() bool
True if the file is an image.
isVideo() bool
True if the file is a video.
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 ==(covariant FileWrapper other) bool
The equality operator.
override