copyWith method

BarChartStyle copyWith({
  1. BarChartGridStyle? gridStyle,
  2. BarChartAxisStyle? axisStyle,
  3. BarChartBarStyle? barStyle,
  4. BarChartTooltipStyle? tooltipStyle,
})

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

Implementation

BarChartStyle copyWith({
  BarChartGridStyle? gridStyle,
  BarChartAxisStyle? axisStyle,
  BarChartBarStyle? barStyle,
  BarChartTooltipStyle? tooltipStyle,
}) =>
    BarChartStyle(
      gridStyle: gridStyle ?? this.gridStyle,
      axisStyle: axisStyle ?? this.axisStyle,
      barStyle: barStyle ?? this.barStyle,
      tooltipStyle: tooltipStyle ?? this.tooltipStyle,
    );