activationMode property

SparkChartActivationMode activationMode
final

Defines the gesture for activating the trackball to the closest data point.

Also refer SparkChartActivationMode.

Defaults to SparkChartActivationMode.tap.

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

Implementation

final SparkChartActivationMode activationMode;