opacity property

double opacity
final

Opacity of the tooltip.

The value ranges from 0 to 1.

Defaults to 1.

late TooltipBehavior tooltipBehavior;

void initState() {
  tooltipBehavior = TooltipBehavior(
    enable: true,
    opacity: 0.7
  );
  super.initState();
}

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

Implementation

final double opacity;