utils/init_contacts_service library
Functions
-
addContact(
String atsign, {String? nickName}) → Future< bool> -
Adds
atsignin contact list. IfnickNameis not null , it wll be set as nick name of theatsign. -
blockOrUnblockAtContact(
AtContact atContact, bool blockAction) → Future< bool> -
blocks/unblocks
atContactbased on booleanblockActionifblockActionistrue,atContactwill be blocked. -
checkForCachedContactDetail(
String atSign) → AtContact -
deleteContact(
String atsign) → Future< bool> -
deletes the given
atsign -
disposeContactsControllers(
) → void - Function call from app to dispose stream controllers used in the package
-
fetchContactList(
) → Future< List< AtContact> ?> -
gives list of
AtContact -
getAtSignDetails(
String atSign) → Future< AtContact> - Function to fetch the contact details of an atsign
-
getCachedContactDetail(
String atsign) → AtContact? - Function to fetch the contact details of an atsign from cached list
-
initializeContactsService(
{dynamic rootDomain = 'root.atsign.org', dynamic rootPort = 64, bool fetchContacts = true}) → Future< void> - Function to initialise contacts Service
-
markFavContact(
AtContact atContact) → Future< bool> -
marks
atContactas favourite.