updateStyle method

ThresholdAnnotation updateStyle(
  1. AnnotationStyle update(
    1. AnnotationStyle current
    )
)

Rebuilds ThresholdAnnotation.style from its current value.

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

Implementation

ThresholdAnnotation updateStyle(
  AnnotationStyle Function(AnnotationStyle current) update,
) => copyWith(style: update(style));