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),
     data: <double>[18, 24, 30, 14, 28],
   )),
 );
}

Implementation

final Color? backgroundColor;