lineColor property

Color? lineColor
final

Color of the crosshair line.

Color will be applied based on the brightness property of the app.

Defaults to 1

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

Implementation

final Color? lineColor;