updateTrendDefaults method

AnnotationTheme updateTrendDefaults(
  1. TrendAnnotationDefaults update(
    1. TrendAnnotationDefaults current
    )
)

Rebuilds AnnotationTheme.trendDefaults from its current value.

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

Implementation

AnnotationTheme updateTrendDefaults(
  TrendAnnotationDefaults Function(TrendAnnotationDefaults current) update,
) => copyWith(trendDefaults: update(trendDefaults));