OpenFile class

Provides an easy way to open file from the library,

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 Properties

platform → OpenFilePlatform
The platform interface that drives this plugin
no setter

Static Methods

open(String? filePath, {String? type, bool isIOSAppOpen = false, String linuxDesktopName = "xdg", bool linuxUseGio = false, bool linuxByProcess = true}) Future<OpenResult>
Returns a OpenResult object wrapping the error message if it has occurred. if user has already opened the file, returns ResultType.done In linux, you must specify a parameter that tells the application whether to open using linuxUseGio or linuxByProcess