fetchProfilePictureMetaData method
Future<Metadata?>
fetchProfilePictureMetaData(
- String atsign
)
Implementation
Future<Metadata?> fetchProfilePictureMetaData(String atsign) async {
var metadata = Metadata();
metadata.isPublic = true;
metadata.namespaceAware = false;
var key = AtKey();
key.sharedBy = atsign;
key.metadata = metadata;
// making isPublic true (as get method changes it to false)
key.metadata.isBinary = true;
key.key = "image.wavi";
var result = await atClientManager.atClient.getMeta(key);
return result;
}