updateBinConfig method

ScatterChartSeries updateBinConfig(
  1. ScatterBinConfig update(
    1. ScatterBinConfig current
    )
)

Rebuilds ScatterChartSeries.binConfig from its current value.

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

Implementation

ScatterChartSeries updateBinConfig(
  ScatterBinConfig Function(ScatterBinConfig current) update,
) => copyWith(binConfig: update(binConfig));