listContacts method

  1. @override
PagingList<Contact> listContacts({
  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

Implementation

@override
PagingList<Contact> listContacts(
    {String? query,
    bool? phoneQuery,
    bool withThumbnails = true,
    bool withHiResPhoto = true,
    bool withUnifyInfo = false,
    int bufferSize = 20,
    ContactSortOrder? sortBy}) {
  final list = PagingList<Contact>(
    pageGenerator: _defaultPageGenerator(
      this,
      query,
      phoneQuery,
      withThumbnails,
      withHiResPhoto,
      withUnifyInfo,
      sortBy ?? defaultSort,
    ),
    bufferSize: bufferSize,
    length: getTotalContacts(query: query, phoneQuery: phoneQuery),
  );
  return list;
}