color property
Customizes the color of the marker. 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(
marker: SparkChartMarker(
color: Colors.red, displayMode: SparkChartMarkerDisplayMode.all),
data: <double>[18, 24, 30, 14, 28],
)),
);
}
Implementation
final Color? color;