· Just learning

How to delete a document from a ListView

I cannot believe I can't figure this out, but I've been trying for days. I have a list of posts coming in from Firebase. I am displaying those posts in a listview and have everything working. Now I would like to simply delete a selected item. My first attempt failed (attempting to pass a parameter to a Bottom Sheet) so I tried to simplify things and just delete directly from a listview via a "delete" button. I cannot get it to work either. My challenge seems to be in selecting the document in the list of documents, but I can't find it. The only thing I can select is a Reference, but that doesn't seem to work either. I'm assuming this is something very simple that I have overloooked. Any help would be greatly appreciated.

4 replies