copyWith method

ConfigParser copyWith({
  1. Pattern? pattern,
  2. FutureOr<Map<String, dynamic>?> getConfig(
    1. String name,
    2. String path,
    3. String contents
    )?,
  3. FileSystem? fs,
})

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,
  );
}