color property

Color color
final

Customizes the spark line chart color.

Defaults to blue.

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

Implementation

final Color color;