updateContact method

  1. @override
Future<bool> updateContact({
  1. required ContactType type,
  2. required String contact,
  3. required String verifyCode,
  4. HandleError? onError,
})
override

Implementation

@override
Future<bool> updateContact({
  required ContactType type,
  required String contact,
  required String verifyCode,
  HandleError? onError,
}) async {
  return await helper.put(
        "/user-info",
        data: {
          "contact_type": contactTypes[type],
          "contact": contact,
          "verify_code": verifyCode,
        },
        handleError: onError,
      ) !=
      false;
}