updateStyle method

ChartSelectionBrushConfig updateStyle(
  1. ChartSelectionBrushStyle update(
    1. ChartSelectionBrushStyle current
    )
)

Rebuilds ChartSelectionBrushConfig.style from its current value.

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

Implementation

ChartSelectionBrushConfig updateStyle(
  ChartSelectionBrushStyle Function(ChartSelectionBrushStyle current) update,
) => copyWith(style: update(style));