getContacts static method
Fetches all contacts.
By default only ID and display name are fetched. If withProperties
is
true, properties (phones, emails, addresses, websites, etc) are also
fetched.
If withThumbnail
is true, the low-resolution thumbnail is also
fetched. If withPhoto
is true, the high-resolution photo is also
fetched.
If sorted
is true, the contacts are returned sorted by their
normalized display names (ignoring case and diacritics).
If deduplicateProperties
is true, the properties will be de-duplicated,
mainly to avoid the case (common on Android) where multiple equivalent
phones are returned.
Implementation
static Future<List<Contact>> getContacts({
bool withProperties = false,
bool withThumbnail = false,
bool withPhoto = false,
bool sorted = true,
bool deduplicateProperties = true,
}) async =>
_select(
withProperties: withProperties,
withThumbnail: withThumbnail,
withPhoto: withPhoto,
sorted: sorted,
deduplicateProperties: deduplicateProperties,
);