backgroundColor property

Color? backgroundColor
final

Background color of the legend.

Used to change the background color of legend shape.

Defaults to Colors.transparent

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           legend: Legend(
              isVisible: true,
              backgroundColor: Colors.transparent)
       ));
}

Implementation

final Color? backgroundColor;