Updates the current user with the given user data.
user
Future<void> updateUser(User user) async { var _user = await userDataSource.updateUser(user); state = _user.validOrNull; }