copyWith method

LineResult copyWith({
  1. TextSpan? span,
  2. int? parenthesesLevel,
  3. int? braceLevel,
  4. int? bracketLevel,
})

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