ExclusionFilters enum

Specifies filtering behavior for files or directories.

Inheritance
Available extensions

Values

none → const ExclusionFilters

Do not exclude any files.

const ExclusionFilters(0x0000)
dotPrefixed → const ExclusionFilters

Exclude files and directories whose name begins with period.

const ExclusionFilters(0x0001)
hidden → const ExclusionFilters

Exclude files and directories marked as hidden (e.g., FileSystemEntity.isHidden).

const ExclusionFilters(0x0002)
system → const ExclusionFilters

Exclude files and directories marked as system files.

const ExclusionFilters(0x0004)
sensitive → const ExclusionFilters

Exclude files and directories when the name begins with a period, or has hidden or system attributes.

const ExclusionFilters(0x0007)

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
value int
The numeric value of the filter.
final

Methods

hasFlag(ExclusionFilters filter) bool
Checks if this filter includes the specified filter.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldExclude(String name, {bool isHidden = false}) bool
Checks if a file or directory name should be excluded based on this filter.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator |(ExclusionFilters other) ExclusionFilters
Combines multiple filters.

Constants

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