updateRangeDefaults method

AnnotationTheme updateRangeDefaults(
  1. RangeAnnotationDefaults update(
    1. RangeAnnotationDefaults current
    )
)

Rebuilds AnnotationTheme.rangeDefaults from its current value.

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

Implementation

AnnotationTheme updateRangeDefaults(
  RangeAnnotationDefaults Function(RangeAnnotationDefaults current) update,
) => copyWith(rangeDefaults: update(rangeDefaults));