borderGradient property

LinearGradient? borderGradient
final

Fills the border of the chart series with gradient color.

Default to null.

final List<Color> color = <Color>[Colors.red, Colors.blue, Colors.pink];
final List<double> stops = <double>[0.0, 0.5, 1.0];

Widget build(BuildContext context) {
  return SfCartesianChart(
    series: <BarSeries<SalesData, String>>[
      BarSeries<SalesData, String>(
        borderGradient: LinearGradient(colors: color, stops: stops),
        borderWidth: 3
      ),
    ],
  );
}

Implementation

final LinearGradient? borderGradient;