color property Null safety

Color color
final

Customizes the spark area chart color.

Defaults to blue.

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

Implementation

final Color color;