getBaseChannel static method
Returns channel with given type
and channelUrl
Implementation
static Future<BaseChannel> getBaseChannel(
ChannelType type,
String channelUrl,
) async {
switch (type) {
case ChannelType.group:
return GroupChannel.getChannel(channelUrl);
case ChannelType.open:
return OpenChannel.getChannel(channelUrl);
}
}