Get subchannels
Retrieve the list of subchannels under a community channel by calling community.getSubChannels().
Get subchannel list
Dart
final community = CommunityChannel('<community-id>');
await community.getSubChannels((channels, error) {
if (error == null && channels != null) {
for (final channel in channels) {
print('Subchannel: ${channel.channelId}');
}
}
});