updateUser method Null safety

Future<void> updateUser(
  1. User updatedUser
)

Updates a users information

Implementation

Future<void> updateUser(User updatedUser) async {
  final response =
      await httpClient.patch(endpoint, data: updatedUser.toJson());
  if (response.isSuccessful()) {
    _user(updatedUser);
  }
}