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
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
.gitignoreand.dapperignorein a directory. -
loadFromFile(
String filePath) → IgnoreRules? -
Loads rules from a file, returns
nullif file doesn't exist.