blockOrUnblockAtContact function

Future<bool> blockOrUnblockAtContact(
  1. AtContact atContact,
  2. bool blockAction
)

blocks/unblocks atContact based on boolean blockAction if blockAction is true , atContact will be blocked.

Implementation

Future<bool> blockOrUnblockAtContact(
    AtContact atContact, bool blockAction) async {
  return await ContactService()
      .blockUnblockContact(contact: atContact, blockAction: blockAction);
}