color property Null safety

Color? color
final

Color of the marker shape.

Defaults to null

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           selectionGesture: ActivationMode.doubleTap,
           series: <SplineSeries<SalesData, num>>[
               SplineSeries<SalesData, num>(
                 markerSettings: MarkerSettings(
                        isVisible: true, color: Colors.red),
               ),
             ],
       ));
}

Implementation

final Color? color;