What's the equivalent of Platform.flush () in Dart?
I was trying to move one library from polymer.js to my polymer.dart file and I found this line:
Platform.flush()
And I was wondering what is the equivalent in dart.
this line appears on line 32 in the following library:
https://github.com/Polymer/designer/blob/master/elements/design-state/design-state.html
+3
source to share
1 answer
Not in Polymer.dart and you don't need to, but you can interact with Polymer.js. A workaround is to use JS-interop:
import 'dart:js' as js show context; ... js.context['Platform'].callMethod('flush')
When called async(...)
or asyncTimer(...)
your polymer element Platform.flush()
is called from the Polymer.dart code.
+2
source to share