refreshChannel static method

Future<BaseChannel> refreshChannel(
  1. ChannelType channelType,
  2. String channelUrl,
  3. {Chat? chat}
)

Implementation

static Future<BaseChannel> refreshChannel(
  ChannelType channelType,
  String channelUrl, {
  Chat? chat,
}) async {
  if (channelType == ChannelType.group) {
    return GroupChannel.refresh(channelUrl, chat: chat);
  } else if (channelType == ChannelType.open) {
    return OpenChannel.refresh(channelUrl, chat: chat);
  } else {
    return FeedChannel.refresh(channelUrl, chat: chat);
  }
}