tapText property

TapText? tapText
final

The text being displayed in the tooltip.

Defaults to '$x_value: ${y_value.toStringAsFixed(1)} $unit', but can be customized.

Example:

AnimatedLineChart(
lineChart,
tapText: (prefix, value, unit) => '$prefix: $value $unit'

Implementation

final TapText? tapText;