Flutter – how can i get the String value of the title from the ListTile which was pressed by the user?
I need the String value of the tapped title from the ListTile here is my code from the Listviewbuilder: Expanded( child: ListView.builder( itemCount: displayed_add_ingridients_to_meal.length, itemBuilder: (context, index) => ListTile( onTap: Ingridients_Selected_x(), title: Text(displayed_add_ingridients_to_meal[index].Ingridient_title!), ) ) ) IngridientsSelected_x is a function…