RxReader / tencent_kit

Flutter版QQ登录/分享
MIT License
235 stars 63 forks source link

How to wrap the TencentLoginResp in a Future<TencentLoginResp> #41

Open dreamer2q opened 3 years ago

dreamer2q commented 3 years ago

I put the login method in a single function with a return type of LoginResut which contains necessary information from TencentLoginResp and TencentUserInfoResp,

now I want to wrap login and getInfo in a single function that returns a future,

but the login logic requires to listen on a stream, I cannot handle it properly,

Anyone can help me?