resetPassword method
Send a request to reset the password
This function sends a request to the API client with the provided PasswordRequestModel.
passwordRequestModel
The PasswordRequestModel containing the user's information.
Returns a Future<void>.
Implementation
Future<void> resetPassword(PasswordRequestModel passwordRequestModel) =>
_apiClient
.resetPassword(passwordRequestModel.toJson())
.catchError((error) {
_crashlytics?.recordError(error, StackTrace.current);
throw error;
});