copyWith method

BarChartGroupData copyWith({
  1. int? x,
  2. bool? groupVertically,
  3. List<BarChartRodData>? barRods,
  4. double? barsSpace,
  5. List<int>? showingTooltipIndicators,
})

Copies current BarChartGroupData to a new BarChartGroupData, and replaces provided values.

Implementation

BarChartGroupData copyWith({
  int? x,
  bool? groupVertically,
  List<BarChartRodData>? barRods,
  double? barsSpace,
  List<int>? showingTooltipIndicators,
}) {
  return BarChartGroupData(
    x: x ?? this.x,
    groupVertically: groupVertically ?? this.groupVertically,
    barRods: barRods ?? this.barRods,
    barsSpace: barsSpace ?? this.barsSpace,
    showingTooltipIndicators:
        showingTooltipIndicators ?? this.showingTooltipIndicators,
  );
}