copyWith method

MemoryFileInfo copyWith({
  1. String? path,
  2. MemoryType? type,
  3. String? content,
  4. String? parent,
  5. List<String>? globs,
  6. bool? contentDiffersFromDisk,
  7. String? rawContent,
})

Implementation

MemoryFileInfo copyWith({
  String? path,
  MemoryType? type,
  String? content,
  String? parent,
  List<String>? globs,
  bool? contentDiffersFromDisk,
  String? rawContent,
}) {
  return MemoryFileInfo(
    path: path ?? this.path,
    type: type ?? this.type,
    content: content ?? this.content,
    parent: parent ?? this.parent,
    globs: globs ?? this.globs,
    contentDiffersFromDisk:
        contentDiffersFromDisk ?? this.contentDiffersFromDisk,
    rawContent: rawContent ?? this.rawContent,
  );
}