ContactsService class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
Static Methods
addContact (Contact contact )
→ Future
Adds the contact
to the device contact list
deleteContact (Contact contact )
→ Future
Deletes the contact
if it has a valid identifier
getAvatar (Contact contact , {bool photoHighRes = true } )
→ Future <Uint8List ? >
Loads the avatar for the given contact and returns it. If the user does
not have an avatar, then null
is returned in that slot. Only implemented
on Android.
getContacts ({String ? query , bool withThumbnails = true , bool photoHighResolution = true , bool orderByGivenName = true , bool iOSLocalizedLabels = true , bool androidLocalizedLabels = true } )
→ Future <List <Contact > >
Fetches all contacts, or when specified, the contacts with a name
matching query
getContactsForEmail (String email , {bool withThumbnails = true , bool photoHighResolution = true , bool orderByGivenName = true , bool iOSLocalizedLabels = true , bool androidLocalizedLabels = true } )
→ Future <List <Contact > >
Fetches all contacts, or when specified, the contacts with the email
matching email
Works only on iOS
getContactsForPhone (String ? phone , {bool withThumbnails = true , bool photoHighResolution = true , bool orderByGivenName = true , bool iOSLocalizedLabels = true , bool androidLocalizedLabels = true } )
→ Future <List <Contact > >
Fetches all contacts, or when specified, the contacts with the phone
matching phone
openContactForm ({bool iOSLocalizedLabels = true , bool androidLocalizedLabels = true } )
→ Future <Contact >
openDeviceContactPicker ({bool iOSLocalizedLabels = true , bool androidLocalizedLabels = true } )
→ Future <Contact ? >
openExistingContact (Contact contact , {bool iOSLocalizedLabels = true , bool androidLocalizedLabels = true } )
→ Future <Contact >
updateContact (Contact contact )
→ Future
Updates the contact
if it has a valid identifier