updateLegendStyle method
- LegendStyle update(
- 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));