deleteContact method

  1. @override
Future<bool> deleteContact(
  1. AtContact contact
)

takes AtContact as an input and delete the contacts from the contact_list on success return true otherwise false

Implementation

@override
Future<bool> deleteContact(AtContact contact) async {
  var atSign = contact.atSign;
  //check if atSign is 'null'
  if (atSign == null) return false;
  return await delete(atSign);
}