textStyle property

TextStyle textStyle
final

Customizes the tooltip text.

late TooltipBehavior tooltipBehavior;

void initState() {
  tooltipBehavior = TooltipBehavior(
    enable: true,
    textStyle: TextStyle(
      color: Colors.green
    )
  );
  super.initState();
}

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

Implementation

final TextStyle textStyle;