enable property Null safety

bool enable
final

Toggles the visibility of the crosshair.

Defaults to false

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          crosshairBehavior: CrosshairBehavior(enable: true),
       ));
}

Implementation

final bool enable;