trackballBehavior property

TrackballBehavior trackballBehavior
final

Customizes the trackball in chart.

TrackballBehavior _trackballBehavior;

@override
void initState() {
 _trackballBehavior = TrackballBehavior(enable: true);
 super.initState();
}

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           trackballBehavior: _trackballBehavior,
         )
    );
}

Implementation

final TrackballBehavior trackballBehavior;