copyWith method

ProjectClass copyWith({
  1. ClassElement? classElement,
  2. String? filePath,
  3. Layer? layer,
  4. Set<ArchitectureError>? errors,
})

Implementation

ProjectClass copyWith({
  ClassElement? classElement,
  String? filePath,
  Layer? layer,
  Set<ArchitectureError>? errors,
}) {
  return ProjectClass(
    classElement: classElement ?? this.classElement,
    filePath: filePath ?? this.filePath,
    layer: layer ?? this.layer,
    errors: errors ?? this.errors,
  );
}