LocationListTile constructor

const LocationListTile({
  1. Key? key,
  2. required Prediction prediction,
  3. dynamic onPredictionSelected(
    1. Prediction
    )?,
})

Creates a LocationListTile widget.

  • prediction: The Prediction object that contains the data to be displayed in the list tile. This parameter is required.
  • onPredictionSelected: An optional callback function that will be called when the list tile is tapped, passing the Prediction object as an argument.

Implementation

const LocationListTile({
  super.key,
  required this.prediction,
  this.onPredictionSelected,
});