title: Schedule a notification depending on the data in the database when the app is closed - flutter
body: <p>I need to schedule a notification at an exact time, but not to show it except if a certain value exists in the SQLite database.</p>
  <p>This can be done in another way, by checking the database daily at 00:00, and scheduling the notification depending on the data.</p>
  <p>So, I need to control if the OS should show a notification or not depending on the database, or I need to use the database and schedule the notification when the app is closed.</p>
  <p>Is there a way to do that?</p>