updateUserDirectly method

void updateUserDirectly(
  1. User updatedUser
)

Directly updates the internal user object and notifies listeners.

This method is used when the user object is updated from other parts of the app without going through a full authentication flow.

Implementation

void updateUserDirectly(User updatedUser) {
   _user = updatedUser;
   notifyListeners();
 }