get method

Future<Channel> get(
  1. dynamic id
)

Gets the metadata associated with the specified channel. id must be either a ChannelId or a string which is parsed to a ChannelId

Implementation

Future<Channel> get(dynamic id) async {
  id = ChannelId.fromString(id);
  final channelPage = await ChannelPage.get(_httpClient, id.value);

  return Channel(
    id,
    channelPage.channelTitle,
    channelPage.channelLogoUrl,
    channelPage.channelBannerUrl,
    channelPage.subscribersCount,
  );
}