updateBrush method

ChartSelectionConfig updateBrush(
  1. ChartSelectionBrushConfig update(
    1. ChartSelectionBrushConfig current
    )
)

Rebuilds ChartSelectionConfig.brush from its current value.

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

Implementation

ChartSelectionConfig updateBrush(
  ChartSelectionBrushConfig Function(ChartSelectionBrushConfig current)
  update,
) => copyWith(brush: update(brush));