updateSeriesTheme method

ChartTheme updateSeriesTheme(
  1. SeriesTheme update(
    1. SeriesTheme current
    )
)

Rebuilds ChartTheme.seriesTheme from its current value.

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

Implementation

ChartTheme updateSeriesTheme(
  SeriesTheme Function(SeriesTheme current) update,
) => copyWith(seriesTheme: update(seriesTheme));