ContactService class

A service to handle CRUD operation on contacts

Constructors

ContactService()
Factory pattern to get singleton instance
factory

Properties

allContactsList List<String>
List of all contacts added by atsign
getter/setter pair
atClientManager ↔ AtClientManager
Instance of AtClientManager
getter/setter pair
atContactImpl ↔ AtContactsImpl
Instance of at_contact dart library
getter/setter pair
baseBlockedList List<BaseContact>
getter/setter pair
baseContactList List<BaseContact>
getter/setter pair
blockContactList List<AtContact?>
List of contacts added by atsign
getter/setter pair
blockedContactSink Sink
Sink for the blocked contacts' list stream
no setter
blockedContactStream Stream<List<BaseContact?>>
Stream of blocked contacts' list
no setter
blockedContactStreamController StreamController<List<BaseContact?>>
Stream controller for blocked contacts' list stream
getter/setter pair
cachedContactList List<AtContact?>
List of contacts added by atsign
getter/setter pair
checkAtSign bool?
Boolean indicator for validating atsign
getter/setter pair
contactList List<AtContact?>
List of contacts added by atsign
getter/setter pair
contactSink Sink
Sink for the contacts' list stream
no setter
contactStream Stream<List<BaseContact?>>
Stream of contacts' list
no setter
contactStreamController StreamController<List<BaseContact?>>
Stream controller for contacts' list stream
getter/setter pair
currentAtsign String
Current atsign in use
getter/setter pair
getAtSignError String
Error thrown in fetching an atsign
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isContactPresent bool
Boolean flag to indicate a contact's presence
getter/setter pair
limitReached bool
Boolean flag to indicate a contact's presence
getter/setter pair
loggedInUserDetails ↔ AtContact?
Current atsign's contact details
getter/setter pair
rootDomain String
Root domain to access
getter/setter pair
rootPort int
Root port to access
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedContacts List<AtContact?>
List of contacts added by atsign
getter/setter pair
selectedContactSink Sink
Sink for the selected contacts' list stream
no setter
selectedContactStream Stream<List<AtContact?>>
Stream of selected contacts' list
no setter
selectedContactStreamController StreamController<List<AtContact?>>
Stream controller for selected contacts' list stream
getter/setter pair

Methods

addAtSign(dynamic context, {String? atSign, String? nickName}) Future<bool>
Function to validate, fetch details and save to current atsign's contact list
blockUnblockContact({required AtContact contact, required bool blockAction}) → dynamic
checkAtsign(String? atSign) Future<bool>
Function to validate atsign
clearAtSigns() → dynamic
compareBlockedContactListForUpdatedState() → void
compareContactListForUpdatedState() → void
deleteAtSign({required String atSign}) → dynamic
disposeControllers() → void
dispose function for all the stream controllers declared
fetchBlockContactList() → dynamic
fetchContacts() → dynamic
getContactDetails(String? atSign, String? nickName) Future<Map<String, dynamic>>
Function to get firstname, lastname and profile picture of an atsign
initContactsService(String rootDomainFromApp, int rootPortFromApp) → dynamic
markFavContact(AtContact contact) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeSelectedAtSign(AtContact? contact) → dynamic
resetData() → dynamic
selectAtSign(AtContact? contact) → dynamic
toString() String
A string representation of this object.
inherited
updateState(STATE_UPDATE stateToUpdate, AtContact contact, bool state) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited