switchUser static method

Future switchUser(
  1. Identity identity
)

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()));
}