updateMotion method

BarChartStyle updateMotion(
  1. BarMotionStyle update(
    1. BarMotionStyle current
    )
)

Rebuilds BarChartStyle.motion from its current value.

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

Implementation

BarChartStyle updateMotion(
  BarMotionStyle Function(BarMotionStyle current) update,
) => copyWith(motion: update(motion));