onContactChange property

Stream<List<ContactChange>> get onContactChange

Stream that provides detailed diffs of changes (Added, Updated, Removed).

Each event is a list of ContactChange objects describing what changed.

FlutterContacts.onContactChange.listen((changes) {
  for (final change in changes) {
    print('${change.type}: ${change.contactId}');
  }
});

Implementation

static Stream<List<ContactChange>> get onContactChange =>
    _listener.onContactChange;