updateAnimationTheme method

ChartTheme updateAnimationTheme(
  1. AnimationTheme update(
    1. AnimationTheme current
    )
)

Rebuilds ChartTheme.animationTheme from its current value.

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

Implementation

ChartTheme updateAnimationTheme(
  AnimationTheme Function(AnimationTheme current) update,
) => copyWith(animationTheme: update(animationTheme));