switchUser static method
Switches the current user with the User corresponding to the details provided.
identity
Identity to be switched to.
Implementation
static Future switchUser(Identity identity) {
return NativeBridge.async(
'GetSocial.switchUser', jsonEncode(identity.toJSON()));
}