0

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!

Community
  • 1
  • 1
user224567893
  • 636
  • 4
  • 18
  • 28

1 Answers1

1

I think the observable package does what you want

see How to share data structures with Polymer on both client and server for an example

Community
  • 1
  • 1
Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567