borderColor property

Color borderColor
final

Border color of the tooltip.

Defaults to Colors.transparent.

late TooltipBehavior tooltipBehavior;

void initState() {
  tooltipBehavior = TooltipBehavior(
    enable: true,
    borderColor: Colors.red,
    borderWidth: 3
  );
  super.initState();
}

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

Implementation

final Color borderColor;