getContacts method
dynamic
getContacts()
Implementation
getContacts() async {
await ContactsService.getContacts().then((localContactList) {
for (var userDetail in localContactList) {
if (userDetail.phones != null && userDetail.phones!.isNotEmpty) {
LocalContact localContact =
LocalContact(contact: userDetail, isSelected: false);
contactList.add(localContact);
searchList.add(localContact);
}
}
});
}