updateBarStyle method

BarChartSeries updateBarStyle(
  1. BarChartStyle update(
    1. BarChartStyle current
    )
)

Rebuilds BarChartSeries.barStyle from its current value.

update receives the current BarChartStyle and returns the replacement, so nested configuration is edited without re-stating the enclosing config.

Implementation

BarChartSeries updateBarStyle(
  BarChartStyle Function(BarChartStyle current) update,
) => copyWith(barStyle: update(barStyle));