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.

@override
Widget build(BuildContext context) {
 return Scaffold(
   body: Center(
       child: SfSparkAreaChart(
     trackball: SparkChartTrackball(shouldAlwaysShow: true),
     data: <double>[18, 24, 30, 14, 28],
   )),
 );
}

Implementation

final bool shouldAlwaysShow;