updateDensityConfig method

ScatterChartSeries updateDensityConfig(
  1. ScatterDensityConfig update(
    1. ScatterDensityConfig current
    )
)

Rebuilds ScatterChartSeries.densityConfig from its current value.

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

Implementation

ScatterChartSeries updateDensityConfig(
  ScatterDensityConfig Function(ScatterDensityConfig current) update,
) => copyWith(densityConfig: update(densityConfig));