FilePickerOptions class

Configuration options for file picking operations.

This class encapsulates all the parameters needed to customize file selection behavior, including file type filtering, multiple selection, compression settings, and data inclusion options.

Constructors

FilePickerOptions({FileType type = FileType.all, bool allowMultiple = false, List<String>? allowedExtensions, bool withData = false, bool allowCompression = false, int? compressionQuality})
Creates a new FilePickerOptions instance.
const

Properties

allowCompression → bool
Whether to enable image compression for image files.
final
allowedExtensions → List<String>?
List of allowed file extensions (only works with FileType.custom).
final
allowMultiple → bool
Whether to allow selecting multiple files.
final
compressionQuality → int?
The compression quality (0-100) when compression is enabled.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → FileType
The type of files to pick (all, image, video, audio, document, custom).
final
withData → bool
Whether to include file bytes in the result.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
Converts this options object to a map for platform channel communication.
toString() → String
A string representation of this object.
inherited

Operators

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