8

suppose I want to create a wrapper for a javascript API such as localStorage that adds some additional functionality like automatically journaling changes and syncing it to a server. Dart already has wrappers for these APIs, what is a good way to create a dart wrapper for my wrapped API?

Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
jz87
  • 9,199
  • 10
  • 37
  • 42

1 Answers1

6

You can use the Proxy class for this. There is a good article explaining how this works at http://www.dartlang.org/articles/js-dart-interop/

Christophe Herreman
  • 15,895
  • 9
  • 58
  • 86