0

when i am using await with async ,it's asking me to remove await.what is the reason ?? please check image, it's mandatory to use async and await with Future then why it's asking to remove. i am new on this language please help..Thank you.

I am using firebase version - firebase_auth: ^0.18.0+1

[1]: https://i.stack.imgur.com/arM35.png
viru
  • 1
  • 4

1 Answers1

0

await is applied to an expression or a variable when it return future of an object but here FirebaseAuth.instance.currentUser is returning User not Future so you need not to use await here still you can use it as it is simply a warning not an error or exception thanks i hope it help

Azad Prajapat
  • 713
  • 5
  • 14