I need solutions for Updating or Deleting After a Set Period

Actions & Logic

Hi,

I have a collection named 'notifications' with fields named 'InitialTime', 'DurationTime', and 'EndTime'.

I'm trying to find solution of update or delete a document after a certain period using a timer or delay for a ListView. However, I've already tried using a delay, but it didn't work as expected. where the timer resets and starts counting again each time a new document is added I need to set a delay or whatever for each document. Could you please help me resolve this?


note: I'm using query collection on the page, and generated dynamic children in a listview

What have you tried so far?

I created two documents as shown

after delay of 15 seconds is delete the first one(3:28)

after that the delay start again and delete the second one after 15 seconds the total is 30 seconds!

Did you check FlutterFlow's Documentation for this topic?
Yes