image property

ImageProvider<Object>? image
final

Used to add image to the legend icon.

Default image size is 10.0.

Widget build(BuildContext context) {
  return SfCartesianChart(
    legend: Legend(
      isVisible: true,
      image: const AssetImage('images/bike.png')
    )
  );
}

Implementation

final ImageProvider? image;