copyWith method

SourceLine copyWith({
  1. String? element,
  2. String? text,
  3. File? file,
  4. int? line,
  5. int? startChar,
  6. int? endChar,
  7. int? indent,
})

Implementation

SourceLine copyWith({
  String? element,
  String? text,
  File? file,
  int? line,
  int? startChar,
  int? endChar,
  int? indent,
}) {
  return SourceLine(
    text ?? this.text,
    element: element ?? this.element,
    file: file ?? this.file,
    line: line ?? this.line,
    startChar: startChar ?? this.startChar,
    endChar: endChar ?? this.endChar,
    indent: indent ?? this.indent,
  );
}