borderWidth property Null safety

double borderWidth
final

Customizes the border width of each rectangular column segment. To render the border, both the border width and border color property needs to be set.

Defaults to 0.

@override
Widget build(BuildContext context) {
 return Scaffold(
   body: Center(
       child: SfSparkBarChart(
     borderColor: Colors.black, borderWidth: 3,
     data: <double>[18, 24, 30, 14, 28],
   )),
 );
}

Implementation

final double borderWidth;