XTypeGroup class

A group of accepted file types for native open and save dialogs.

Mirrors XTypeGroup from file_selector with zero external dependencies.

Annotations

Constructors

XTypeGroup({String? label, List<String>? extensions, List<String>? mimeTypes, List<String>? macUTIs, List<String>? uniformTypeIdentifiers, List<String>? webWildCards})
Creates a file type filter group.
const

Properties

allowsAll → bool
Whether this group imposes no type restrictions and allows all files.
no setter
allowsAny → bool
Alias for allowsAll matching file_selector_platform_interface.
no setter
extensions → List<String>?
Allowed file extensions with any leading . or *. normalized away (for example, ['png', 'jpg']).
no setter
hashCode → int
The hash code for this object.
no setterinherited
label → String?
Human-readable label shown in native filter dropdowns (for example, "Images").
final
macUTIs → List<String>?
Allowed Apple Uniform Type Identifiers on macOS (for example, ['public.image', 'public.plain-text']).
final
mimeTypes → List<String>?
Allowed MIME types (for example, ['image/png', 'application/pdf']).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uniformTypeIdentifiers → List<String>?
Alias for macUTIs matching file_selector_platform_interface.
no setter
webWildCards → List<String>?
Allowed web wildcard patterns retained for file_selector API parity.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() → Map<String, dynamic>
Alias for toMap matching file_selector_platform_interface.
toMap() → Map<String, dynamic>
Serializes this filter group into a platform channel map.
toString() → String
A string representation of this object.
override

Operators

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