updateAnnotationTheme method

ChartTheme updateAnnotationTheme(
  1. AnnotationTheme update(
    1. AnnotationTheme current
    )
)

Rebuilds ChartTheme.annotationTheme from its current value.

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

Implementation

ChartTheme updateAnnotationTheme(
  AnnotationTheme Function(AnnotationTheme current) update,
) => copyWith(annotationTheme: update(annotationTheme));