copyWith method
LegendConfig
copyWith({
- LegendDirection? direction,
- double? itemSpacing,
- double? symbolSize,
- double? symbolLabelSpacing,
- TextStyle? labelStyle,
- LegendSymbolShape? symbolShape,
Creates a copy with modified values.
Implementation
LegendConfig copyWith({
LegendDirection? direction,
double? itemSpacing,
double? symbolSize,
double? symbolLabelSpacing,
TextStyle? labelStyle,
LegendSymbolShape? symbolShape,
}) {
return LegendConfig(
direction: direction ?? this.direction,
itemSpacing: itemSpacing ?? this.itemSpacing,
symbolSize: symbolSize ?? this.symbolSize,
symbolLabelSpacing: symbolLabelSpacing ?? this.symbolLabelSpacing,
labelStyle: labelStyle ?? this.labelStyle,
symbolShape: symbolShape ?? this.symbolShape,
);
}