listActiveContacts method

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

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

Implementation

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