updateRoot method

BarDrilldownConfig updateRoot(
  1. BarDrillNode update(
    1. BarDrillNode current
    )
)

Rebuilds BarDrilldownConfig.root from its current value.

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

Implementation

BarDrilldownConfig updateRoot(
  BarDrillNode Function(BarDrillNode current) update,
) => copyWith(root: update(root));