selectionRectBorderColor property Null safety

Color? selectionRectBorderColor
final

Border color of the selection zooming rectangle.

It used to change the stroke color of the selection rectangle.

Defaults to null.

late ZoomPanBehavior zoomPanBehavior;

void initState() {
  zoomPanBehavior = ZoomPanBehavior(
    enableSelectionZooming: true,
    selectionRectBorderColor: Colors.red
  );
  super.initState();
}

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

Implementation

final Color? selectionRectBorderColor;