FilePreview class

Constructors

FilePreview()

Properties

hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

generatePDFPreview(String filePath, {double? height, double? width}) Future
Creates a file preview of a .pdf file of the given filePath. In case it cannot be properly rendered, invoke _defaultImage instead.
getThumbnail(String filePath, {double? height, double? width}) Future<Widget>
Create a preview Image of a file from a given filePath. In case it's an image extension it will invoke the default flutter Image providers, in case its a pdf it will invoke the native pdf renderer. For iOS it will try to use the native previewer, which is the same preview you would see in the files app on iOS.