streamContacts method
Stream<Contact>
streamContacts({
- String? query,
- bool? phoneQuery,
- bool withThumbnails = true,
- bool withHiResPhoto = true,
- bool withUnifyInfo = false,
- int bufferSize = 20,
- 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;
}