image property

ImageProvider<Object>? image
final

Image to be used as marker.

Defaults to null

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           selectionGesture: ActivationMode.doubleTap,
           series: <SplineSeries<SalesData, num>>[
               SplineSeries<SalesData, num>(
                 markerSettings: MarkerSettings(
                        isVisible: true, image: const AssetImage('images/bike.png'),
                        shape: DataMarkerType.image),
               ),
             ],
       ));
}

Implementation

final ImageProvider? image;