Closed reeteshkumar39 closed 6 years ago
I'm not sure to understand what you need
var allContacts = await ContactsService.getContacts();
var filtered = allContacts.where((c) => c.phones.any((phone) => phone.value.contains("123456789"))).toList();
Here's how you can fetch contacts matching a phone number
Ok I think I understood what you want, is it something like
var phones = [];
contacts.forEach((contact) => contact.phones.forEach((phone) => phones.add(phone.value)));
thank you.......it works
how can get all contacts phone number from user phone in a list?