From 0122544bb900a40d1e48e783eb038e532265e152 Mon Sep 17 00:00:00 2001 From: Sardar1208 Date: Fri, 22 Dec 2023 12:28:32 +0530 Subject: [PATCH] chore: added return type to functions --- .../at_contacts_flutter/lib/services/contact_service.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/at_contacts_flutter/lib/services/contact_service.dart b/packages/at_contacts_flutter/lib/services/contact_service.dart index d5fe7fe3..b22e4ada 100644 --- a/packages/at_contacts_flutter/lib/services/contact_service.dart +++ b/packages/at_contacts_flutter/lib/services/contact_service.dart @@ -599,7 +599,7 @@ class ContactService { return contactDetails; } - getProfilePicture(String atsign) async { + Future?> getProfilePicture(String atsign) async { var contactDetails = {}; var metadata = Metadata(); @@ -628,10 +628,12 @@ class ContactService { contactDetails['image'] = null; return contactDetails; } + }else { + return null; } } - fetchProfilePictureMetaData(String atsign) async { + Future fetchProfilePictureMetaData(String atsign) async { var metadata = Metadata(); metadata.isPublic = true; metadata.namespaceAware = false;