getAvatar static method

Future<Uint8List?> getAvatar(
  1. Contact contact, {
  2. bool photoHighRes = true,
})

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.

Implementation

static Future<Uint8List?> getAvatar(final Contact contact,
        {final bool photoHighRes = true}) =>
    _channel.invokeMethod('getAvatar', <String, dynamic>{
      'contact': Contact._toMap(contact),
      'photoHighResolution': photoHighRes,
    });