getUserInfo method
Get user info of the user if logged in
Implementation
Future<UserInfo> getUserInfo() async {
if (_userInfo == null) {
var info = await request(method: METHOD_GET_USER_INFO, params: []);
_userInfo = UserInfo(info["id"], info["name"], info["email"],
info["picture"], info["address"]);
}
// return _userInfo;
return Future.value(_userInfo);
}