updateLegendStyle method

LegendAnnotation updateLegendStyle(
  1. LegendStyle update(
    1. LegendStyle current
    )
)

Rebuilds LegendAnnotation.legendStyle from its current value.

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

Implementation

LegendAnnotation updateLegendStyle(
  LegendStyle Function(LegendStyle current) update,
) => copyWith(legendStyle: update(legendStyle));