opacity property
Opacity of the legend.
Used to control the transparency of the legend icon shape. The value ranges from 0 to 1.
Defaults to 1.0
.
Widget build(BuildContext context) {
return SfCartesianChart(
legend: Legend(
isVisible: true,
opacity: 0.5
)
);
}
Implementation
final double opacity;