Looking at resources and documentation online, I have found out that you can access metadata annotations from classes or fields (How do I access metadata annotations from a class? or How to get the value from metadata, in Dart?, for instance).
But I would like to know how to see, after a variable has been annotated with a metadata annotation (such as @Persist), if that variable has been accessed or changed. That I wasn't able to find how to do it.
The application I have in mind for this is to be able to make a variable to transparently persist to a database (whenever the variable is accessed or mutated) by means of annotating that variable. Many thanks!