fetchGroupList method
void
fetchGroupList()
Implementation
void fetchGroupList() async {
final response = await client.getGroups;
response.fold(
(error) {
log('error: $error');
controller.addError(id, error, StackTrace.empty);
},
(data) {
log('Groups received from client');
controller.addAllById(communityId, data);
},
);
}