image property
Padding of the legend items.
Used to add image to the legend icon.
Default image size is 10.0
.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
legend: Legend(
isVisible: true,
image: const AssetImage('images/bike.png'))
));
}
Implementation
final ImageProvider? image;