currentUser static method

Future currentUser(
  1. {ParseCloneable? customUserObject}
)

Gets the current user from storage

Current user is stored locally, but in case of a server update bool fromServer can be called and an updated version of the User object will be returned

Implementation

static Future<dynamic> currentUser({ParseCloneable? customUserObject}) async {
  if (customUserObject != null) {
    return await _getUserFromLocalStore(cloneable: customUserObject);
  } else {
    return await _getUserFromLocalStore();
  }
}