updateUser method

Future<void> updateUser(
  1. UserModel user
)

Persists user to SecureStorage, updates the Sentry user context, and broadcasts the new value on the user stream.

Implementation

Future<void> updateUser(UserModel user) async {
  _logger.info('[UserRepository] Persisting updated user to secure storage');
  await _secureStorage.setUserModel(user);
  _setSentryUser(user);
  if (!_userController.isClosed) _userController.add(user);
}