onPredictionSelected property

dynamic Function(Prediction)? onPredictionSelected
final

A callback function that is triggered when the list tile is tapped.

The function receives the Prediction object associated with the tapped list tile. This is optional and can be used to handle selection events.

Implementation

final Function(Prediction)? onPredictionSelected;