OpenFileDialogParams class

Parameters for the pickFile method.

Constructors

OpenFileDialogParams({OpenFileDialogType dialogType = OpenFileDialogType.document, SourceType sourceType = SourceType.photoLibrary, bool allowEditing = false, List<String>? allowedUtiTypes, List<String>? fileExtensionsFilter, List<String>? mimeTypesFilter, bool localOnly = false, bool copyFileToCacheDir = true})
Create parameters for the pickFile method.
const

Properties

allowEditing bool
final
allowedUtiTypes List<String>?
You need to register the document types that your application can open with iOS. To do this you need to add a document type to your app’s Info.plist for each document type that your app can open. Additionally if any of the document types are not known by iOS, you will need to provide an Uniform Type Identifier (UTI) for that document type.
final
copyFileToCacheDir bool
Flag telling if the picked file should be copied to the application specific cache directory (Android only).
final
dialogType OpenFileDialogType
Dialog type (iOS)
final
fileExtensionsFilter List<String>?
Filter for file extensions (null to allow any extension)
final
hashCode int
The hash code for this object.
no setterinherited
localOnly bool
Access files in local device only (Android)?
final
mimeTypesFilter List<String>?
MIME types filter (Android only) Only files with the provided MIME types will be shown in the file picker.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceType SourceType
Source type (iOS)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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