copyWith method

BarChartGridStyle copyWith({
  1. Color? color,
  2. double? stroke,
})

Creates a copy of the current object with new values specified in arguments.

Implementation

BarChartGridStyle copyWith({
  Color? color,
  double? stroke,
}) =>
    BarChartGridStyle(
      color: color ?? this.color,
      stroke: stroke ?? this.stroke,
    );