shouldAlwaysShow property

bool shouldAlwaysShow
final

Shows or hides the trackball.

By default, the trackball will be hidden on touch. To avoid this, set this property to true.

Defaults to false.

late TrackballBehavior trackballBehavior;

void initState() {
  trackballBehavior = TrackballBehavior(
    enable: true,
    shouldAlwaysShow: true
  );
  super.initState();
}

Widget build(BuildContext context) {
  return SfCartesianChart(
    trackballBehavior: trackballBehavior
  );
}

Implementation

final bool shouldAlwaysShow;