Flutter for Web - Trying to callback from javascript to dart

126 views
Skip to first unread message

Simon Ampleman

unread,
Mar 31, 2020, 7:01:30 PM3/31/20
to Flutter Development (flutter-dev)
Hello,

I am trying to pass a dart function to javascript, keep it in reference, and later, when one of the javascript has a callback from a webservice, call the dart function.

It works well if I call the dart function directly in the javascript function, but when I keep its reference and call it later, it crash indicating that call method is not found.

Is there a documentation on how I could work this out (flutter / js interop) ?

Thank you,

Simon
Reply all
Reply to author
Forward
0 new messages