changePassword abstract method

Future<RequestResponse<bool?>> changePassword({
  1. required String oldPassword,
  2. required String newPassword,
})

Changes the password of the currently logged in user.

Validates the old (current) password before changing it.

Implementation

Future<RequestResponse<bool?>> changePassword(
    {required String oldPassword, required String newPassword});