GroupService class

Service to handle CRUD operations on groups

Constructors

GroupService()
factory

Properties

allContacts List<GroupContactsModel?>
List of all the contacts for the atsign
getter/setter pair
allContactsSink StreamSink<List<GroupContactsModel?>>
Sink for all contacts stream
no setter
allContactsStream Stream<List<GroupContactsModel?>>
all contacts stream
no setter
atClientManager ↔ AtClientManager
Instance of AtClientManager
getter/setter pair
atContactImpl ↔ AtContactsImpl
Instance of AtContactsImpl
getter/setter pair
atGroupSink StreamSink<List<AtGroup>>
Sink for group list stream
no setter
atGroupStream Stream<List<AtGroup>>
Group list stream
no setter
currentAtsign String?
no setter
currentSelectedGroup → AtGroup?
no setter
expandIndex int?
getter/setter pair
groupViewSink StreamSink<AtGroup>
Sink for group view stream
no setter
groupViewStream Stream<AtGroup>
Group view stream
no setter
hashCode int
The hash code for this object.
no setterinherited
length int
getter/setter pair
rootDomain String?
Root domain to use
getter/setter pair
rootPort int?
Root port to use
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selecteContactList List<AtContact?>?
selected contact list for the group
getter/setter pair
selectedContactList List<AtContact?>?
no setter
selectedContactsSink StreamSink<List<GroupContactsModel?>>
Sink for selected group contact stream
no setter
selectedContactsStream Stream<List<GroupContactsModel?>>
Selected group contact stream
no setter
selectedGroup ↔ AtGroup?
Details of the selected group
getter/setter pair
selectedGroupContacts List<GroupContactsModel?>
List of all the contacts for the atsign
getter/setter pair
showLoader bool?
Boolean flag to control loader
getter/setter pair
showLoaderSink StreamSink<bool>
no setter
showLoaderStream Stream<bool>
no setter

Methods

addGroupContact(GroupContactsModel? item) → dynamic
addGroupMembers(List<AtContact?> contacts, AtGroup group) Future
Function to add members to a group
createGroup(AtGroup atGroup) Future
Function to create a group
deleteGroup(AtGroup group) Future<bool?>
Function to delete a group
deletGroupMembers(List<AtContact> contacts, AtGroup group) Future
Function to delete members of a group
dispose() → void
Function to dispose all declared stream controllers
fetchGroupsAndContacts({bool isDesktop = false}) → dynamic
getAllGroupsDetails({int? expandIndex, AtGroup? expandGroup, bool addToGroupSink = true}) → dynamic
getGroupDetail(String groupId) Future<AtGroup?>
Function to get group details for a group ID
init(String rootDomainFromApp, int rootPortFromApp) → void
initialise the service with details from app
listAllGroupNames() → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeGroupContact(GroupContactsModel? item) → dynamic
resetData() → void
Function to reset all data related to groups
setSelectedContacts(List<AtContact?>? list) → dynamic
toString() String
A string representation of this object.
inherited
updateGroup(AtGroup group, {int? expandIndex}) Future
Function to update group details
updateGroupData(AtGroup group, BuildContext context, {bool isDesktop = false, int? expandIndex}) Future
updateGroupStreams(AtGroup group, {int? expandIndex, bool expandGroup = false}) → dynamic

Operators

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