copyWith method
BarChartStyle
copyWith({
- BarChartGridStyle? gridStyle,
- BarChartAxisStyle? axisStyle,
- BarChartBarStyle? barStyle,
- 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,
);