borderWidth property
Border width of the legend.
Used to change the stroke width of the legend shape.
Defaults to 0.0
.
Widget build(BuildContext context) {
return SfCartesianChart(
legend: Legend(
isVisible: true,
borderColor: Colors.red,
borderWidth: 3
)
);
}
Implementation
final double borderWidth;