updatePointDefaults method

AnnotationTheme updatePointDefaults(
  1. PointAnnotationDefaults update(
    1. PointAnnotationDefaults current
    )
)

Rebuilds AnnotationTheme.pointDefaults from its current value.

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

Implementation

AnnotationTheme updatePointDefaults(
  PointAnnotationDefaults Function(PointAnnotationDefaults current) update,
) => copyWith(pointDefaults: update(pointDefaults));