getByHandle method

Future<Channel> getByHandle(
  1. dynamic handle
)

Implementation

Future<Channel> getByHandle(dynamic handle) async {
  handle = ChannelHandle.fromString(handle);

  final channelPage = await ChannelPage.getByHandle(
    _httpClient,
    (handle as ChannelHandle).value,
  );
  return Channel(
    ChannelId(channelPage.channelId),
    channelPage.channelTitle,
    channelPage.channelLogoUrl,
    channelPage.channelBannerUrl,
    channelPage.subscribersCount,
  );
}