Javascript Wait For Async In Flutter