listBlockedContacts method

  1. @override
Future<List<AtContact>> listBlockedContacts()

fetch all blocked contacts in the list returns the list of AtContact

Implementation

@override
Future<List<AtContact>> listBlockedContacts() async {
  var contactList = await listContacts();
  return contactList.where((element) => element.blocked!).toList();
}