IgnoreRules class

Rules for ignoring files and directories.

Supports glob patterns and negation patterns (prefixed with !).

Constructors

IgnoreRules.empty()
Creates empty rules.
factory
IgnoreRules.parse(String content)
Parses ignore rules from file content.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Whether this rules set is empty.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

merge(IgnoreRules other) IgnoreRules
Merges this rules with another, creating combined rules.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldIgnore(String name, Set<String> defaultIgnored, {String? relativePath, bool isDirectory = false}) bool
Checks if an entry should be ignored.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

loadFromDirectory(String directoryPath) IgnoreRules
Loads combined rules from .gitignore and .dapperignore in a directory.
loadFromFile(String filePath) IgnoreRules?
Loads rules from a file, returns null if file doesn't exist.