updateContact method
Future<bool>
updateContact({
- required ContactType type,
- required String contact,
- required String verifyCode,
- 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;
}