copyWith method

ConnectingLinesGuide copyWith({
  1. double? indent,
  2. Color? color,
  3. double? thickness,
  4. double? origin,
  5. bool? roundCorners,
})

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

Implementation

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