changePassword method

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

Implementation

Future<Response> changePassword({
  required String oldPassword,
  required String newPassword,
}) async {
  Response response = await api.post(
    '/change_password',
    data: {'oldPassword': oldPassword, 'newPassword': newPassword},
  );

  return response;
}