copyWith method

KLineCrosshairStyle copyWith({
  1. Color? color,
  2. double? strokeWidth,
})

Returns a copy with selected values replaced.

Implementation

KLineCrosshairStyle copyWith({
  Color? color,
  double? strokeWidth,
}) {
  return KLineCrosshairStyle(
    color: color ?? this.color,
    strokeWidth: strokeWidth ?? this.strokeWidth,
  );
}