getGroups function
Retrieves the list of Groups for the current user.
Implementation
List<Group> getGroups() {
final groupIds = getGroupIds();
final groups = <Group>[];
for (final gid in groupIds) {
final group = getGroupByGid(gid);
groups.add(group);
}
return groups;
}