getContact method
Future<Contact?>
getContact(
- String identifier, {
- bool withThumbnails = true,
- bool withHiResPhoto = true,
- bool withUnifyInfo = true,
override
Retrieves a single contact by identifier
Implementation
@override
Future<Contact?> getContact(identifier,
{bool withThumbnails = true,
bool withHiResPhoto = true,
bool withUnifyInfo = true}) async {
final _keys = ContactKeys.of(mode, identifier);
final fromChannel =
await channel.invokeMethod('getContact', <String, dynamic>{
_kidentifier: _keys.toMap(),
_kwithThumbnails: withThumbnails,
kwithUnifyInfo: withUnifyInfo,
_kphotoHighResolution: withHiResPhoto,
});
if (fromChannel == null) return null;
return Contact.fromMap(fromChannel, mode);
}