copyWith method
Creates a copy of this LineResult with updated values
Implementation
LineResult copyWith({
TextSpan? span,
int? parenthesesLevel,
int? braceLevel,
int? bracketLevel,
}) {
return LineResult(
span: span ?? this.span,
parenthesesLevel: parenthesesLevel ?? this.parenthesesLevel,
braceLevel: braceLevel ?? this.braceLevel,
bracketLevel: bracketLevel ?? this.bracketLevel,
);
}