color property
Customizes the color of the trackball line. 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(
color: Colors.black,),
data: <double>[18, 24, 30, 14, 28],
)),
);
}
Implementation
final Color? color;