Skip to content

Commit

Permalink
chore: added return type to functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sardar1208 committed Dec 22, 2023
1 parent 972855c commit 0122544
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ class ContactService {
return contactDetails;
}

getProfilePicture(String atsign) async {
Future<Map<String, dynamic>?> getProfilePicture(String atsign) async {
var contactDetails = <String, dynamic>{};

var metadata = Metadata();
Expand Down Expand Up @@ -628,10 +628,12 @@ class ContactService {
contactDetails['image'] = null;
return contactDetails;
}
}else {
return null;
}
}

fetchProfilePictureMetaData(String atsign) async {
Future<Metadata?> fetchProfilePictureMetaData(String atsign) async {
var metadata = Metadata();
metadata.isPublic = true;
metadata.namespaceAware = false;
Expand Down

0 comments on commit 0122544

Please sign in to comment.