streamContacts method

  1. @override
Stream<Contact> streamContacts({
  1. String? query,
  2. bool? phoneQuery,
  3. bool withThumbnails = true,
  4. bool withHiResPhoto = true,
  5. bool withUnifyInfo = false,
  6. int bufferSize = 20,
  7. ContactSortOrder? sortBy,
})
override

Fetches all contacts, or when specified, the contacts with a name matching query. The stream terminates once the items are all iterated.

Implementation

@override
Stream<Contact> streamContacts({
  String? query,
  bool? phoneQuery,
  bool withThumbnails = true,
  bool withHiResPhoto = true,
  bool withUnifyInfo = false,
  int bufferSize = 20,
  ContactSortOrder? sortBy,
}) {
  final stream = PagingStream<Contact>(
    pageGenerator: _defaultPageGenerator(
      this,
      query,
      phoneQuery,
      withThumbnails,
      withHiResPhoto,
      withUnifyInfo,
      sortBy ?? defaultSort,
    ),
    bufferSize: bufferSize,
  );
  return stream;
}