builder property

ChartWidgetBuilder? builder
final

Builder of the tooltip.

Defaults to null.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          tooltipBehavior: TooltipBehavior(
          enable: true,
          builder: (dynamic data, dynamic point,
          dynamic series, int pointIndex, int seriesIndex) {
          return Container(
             height: 50,
             width: 100,
             decoration: const BoxDecoration(
             color: Color.fromRGBO(66, 244, 164, 1)),
             child: Row(
             children: <Widget>[
             Container(
             width: 50,
             child: Image.asset('images/bike.png')),],
        ));
        }),
       ));
}

Implementation

final ChartWidgetBuilder<dynamic>? builder;