I have a LineChart where the default behaviour is that a tooltip with the y value shows up when you touch the chart.
How would i be able to get the x and y values of the point touched on the chart to save it in a variable for example.
It has to be in this property of the LineChart:
lineTouchData: LineTouchData(enabled: true),