copyWith method
Create a copy of the parser with the given parameters.
Implementation
ConfigParser copyWith({
Pattern? pattern,
FutureOr<Map<String, dynamic>?> Function(
String name, String path, String contents)?
getConfig,
FileSystem? fs,
}) {
return ConfigParser(
pattern ?? this.pattern,
getConfig ?? this.getConfig,
fs: fs ?? this.fs,
);
}