FlutterDocumentPickerParams class

Constructors

FlutterDocumentPickerParams({List<String>? allowedUtiTypes, List<String>? allowedFileExtensions, List<String>? allowedMimeTypes, List<String> invalidFileNameSymbols = const ['/']})

Properties

allowedFileExtensions List<String>?
List of file extensions that picked file should have. If list is null or empty - picked document extension will not be checked.
final
allowedMimeTypes List<String>?
Android only. Allowed MIME types. Only files with provided MIME types will be shown in document picker. If list is null or empty - / MIME type will be used.
final
allowedUtiTypes List<String>?
In iOS Uniform Type Identifiers is used to check document types. If list is null or empty "public.data" document type will be provided. Only documents with provided UTI types will be enabled in iOS document picker.
final
hashCode int
The hash code for this object.
no setterinherited
invalidFileNameSymbols List<String>
List symbols that will be sanitized to '_' in the selected document name. I.e. Google Drive allows symbol '/' in the document name, but this symbol is not allowed in file name that will be saved locally. Default list: '/'. Example: file name 'Report_2018/12/08.txt' will be replaced to 'Report_2018_12_08.txt'
final
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
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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