I was trying to move a library from polymer.js to polymer.dart and found this line:
<<>
Platform.flush ()
And I was wondering what is equivalent in dart.
This row appears on 32 in the next library:
is not there and you do not want it in polymer dart but you can be interop with polymers.js. An alternate solution to use JS-Interop:
import 'dart: as reference to JS' JS; ... jscontext ['platform']. CallMethod ('flush')
When you call async (...)
or asyncTimer (...) of your polymer element
Platform.flush ()
is called by the Polymer dart code.
Comments
Post a Comment