backgroundColor property

Color? backgroundColor
final

Customizes the background color of the trackball tooltip. The color is set based on the current application theme, if its value is set to null.

Defaults to null.

@override
Widget build(BuildContext context) {
 return Scaffold(
   body: Center(
       child: SfSparkAreaChart(
     trackball:SparkChartTrackball(
     backgroundColor: Colors.black)
        )
      ),
   );
}

Implementation

final Color? backgroundColor;