getContactImage static method
Future<Uint8List?>
getContactImage(
- String contactId, {
- ContactImageSize size = ContactImageSize.thumbnail,
Returns an image of the contact with the given contactId
.
size
specifies the size of the image. By default, a thumbnail is returned.
Implementation
static Future<td.Uint8List?> getContactImage(
String contactId, {
ContactImageSize size = ContactImageSize.thumbnail,
}) =>
_channel.invokeMethod('getContactImage', {
'id': contactId,
'size': size == ContactImageSize.thumbnail ? 'thumbnail' : 'fullSize',
});