updateCache method

void updateCache({
  1. String? email,
  2. String? referralCode,
})

Implementation

void updateCache({String? email, String? referralCode}) async {
  globalUserState().updateState(
    (userState) => userState.copyWith(
      firstName: firstName,
      lastName: lastName,
      userId: viewState.userId,
      email: email,
    ),
  );
}