updateTextDefaults method

AnnotationTheme updateTextDefaults(
  1. TextAnnotationDefaults update(
    1. TextAnnotationDefaults current
    )
)

Rebuilds AnnotationTheme.textDefaults from its current value.

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

Implementation

AnnotationTheme updateTextDefaults(
  TextAnnotationDefaults Function(TextAnnotationDefaults current) update,
) => copyWith(textDefaults: update(textDefaults));