copyWith method

KLineVolumeStyle copyWith({
  1. Color? riseColor,
  2. Color? fallColor,
})

Returns a copy with selected values replaced.

Implementation

KLineVolumeStyle copyWith({
  Color? riseColor,
  Color? fallColor,
}) {
  return KLineVolumeStyle(
    riseColor: riseColor ?? this.riseColor,
    fallColor: fallColor ?? this.fallColor,
  );
}