deleteAllContacts method

  1. @action
Future<bool> deleteAllContacts()

Implementation

@action
Future<bool> deleteAllContacts() async {
  for (final contact in List.of(contacts)) {
    await _deleteContactServer(contact);
  }
  await _contactsService.deleteAllContactsRpc.request([]);
  contacts.clear();
  return true;
}