FileType enum

Enumeration of supported file types for file picking operations.

This enum defines the different categories of files that can be selected using the ImagePickerMaster plugin.

Inheritance
Available extensions

Values

all → const FileType

All file types are allowed.

image → const FileType

Only image files (JPEG, PNG, GIF, BMP, TIFF, WebP, HEIC, HEIF, AVIF, SVG, ICO).

video → const FileType

Only video files (MP4, AVI, MOV, MKV, WMV, FLV, WebM, 3GP, M4V).

audio → const FileType

Only audio files (MP3, WAV, M4A, FLAC, OGG, AAC, WMA, AIFF).

document → const FileType

Only document files (PDF, Word, Excel, PowerPoint, Text, RTF, Markdown, etc.).

custom → const FileType

Custom file types based on allowedExtensions parameter.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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

Constants

values → const List<FileType>
A constant List of the values in this enum, in order of their declaration.