Is it possible to make notification timer when button toggles on and off?

0
I am currently using a notification widget in the app store, https://github.com/simo101/Notification. I want it to make it such that when a button toggles ( on and off), it will show the same notification. Currently, I have managed to make it so that when the button is on, it will show the notification. However, it does not show the notification when the button is off.  I am thinking that instead of storing attribute I should use calculated attribute for the button but I have no idea on how do I go about it.. I need some advice. I would really appreciate it if someone will help me as I have been struggling with this issue for many days already… 
asked
0 answers