ContactUtils class

Constructors

ContactUtils({required Function toggleLoadingIndicator, required dynamic client, required UpdateStateFunc updateStateFunc})

Properties

client → dynamic
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toggleLoadingIndicator Function
final
updateStateFunc UpdateStateFunc
final

Methods

addPrimaryEmail({required BuildContext context, required String? email, required String? otp}) Future<Map<String, dynamic>>
adds a primary email to an account
addSecondaryEmail({required BuildContext context, required String? email}) Future<Map<String, dynamic>>
addSecondaryPhone({required BuildContext context, required String? phoneNumber}) Future<Map<String, dynamic>>
genericAddContact({required BuildContext context, required String? value, required ContactInfoType type, required Function setOtp, required String flag, required bool primary}) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
retireSecondaryContact({required String value, required bool isPhone, required BuildContext context, required String flag}) Future<Map<String, dynamic>>
sendEmailOtp({required String? email, required BuildContext context, String flag = 'add_contact_info'}) Future<Map<String, dynamic>>
sendPhoneOtp({required String? phone, required BuildContext context, String flag = 'add_contact_info'}) Future<Map<String, dynamic>>
setPrimaryEmail({required BuildContext context, required String? email, required String? otp}) Future<Map<String, dynamic>>
setPrimaryPhone({required BuildContext context, required String? phoneNumber, required String? otp}) Future<Map<String, dynamic>>
showMessageFromModal(BuildContext context, dynamic result, {Function? afterCallback}) → void
The parameter afterCallback is used as an optional parameter A use-case is refreshing feed in pro after adding contact details
toString() String
A string representation of this object.
inherited
verifyAddPrimaryEmailOtp({required BuildContext context, required String? otp, required String userInput, required String? email, required String flag, required Function toggleInvalidCodeMsg, required TextEditingController controller}) Future<void>
verifyContact({required BuildContext context, required bool isPhone, String? flag, String? value, String? otp}) Future<void>

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

validateEmail(String email) bool