How to return a Future from function which returns User?

后端 未结 0 1495
抹茶落季
抹茶落季 2021-01-17 21:46

How to return a Future from function which returns User?

final FirebaseAuth auth = FirebaseAuth.instance;

User getCurrentUser() {
  return auth.currentUser;
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题