color property Null safety

Color? color
final

Color of the marker shape.

Defaults to null.

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

Implementation

final Color? color;