copyWith method

ScopingLinesGuide copyWith({
  1. double? indent,
  2. Color? color,
  3. double? thickness,
  4. double? origin,
})

Creates a copy of this indent guide but with the given fields replaced with the new values.

Implementation

ScopingLinesGuide copyWith({
  double? indent,
  Color? color,
  double? thickness,
  double? origin,
}) {
  return ScopingLinesGuide(
    indent: indent ?? this.indent,
    color: color ?? this.color,
    thickness: thickness ?? this.thickness,
    origin: origin ?? this.origin,
  );
}