firstPointColor property Null safety

Color? firstPointColor
final

Customizes the color of the first rectangular column segment.

If the first data point is either the high data point or low data point, then the priority will be given to firstPointColor property.

Defaults to null.

@override
Widget build(BuildContext context) {
 return Scaffold(
   body: Center(
       child: SfSparkWinLossChart(
     firstPointColor: Colors.red,
     data: <double>[18, 24, 30, 14, 28],
   )),
 );
}

Implementation

final Color? firstPointColor;