getAboutPage method

Future<ChannelAbout> getAboutPage(
  1. dynamic channelId
)

Gets the info found on a YouTube Channel About page. id must be either a ChannelId or a string which is parsed to a ChannelId

Implementation

Future<ChannelAbout> getAboutPage(dynamic channelId) async {
  channelId = ChannelId.fromString(channelId);

  final aboutPage = await ChannelAboutPage.get(_httpClient, channelId.value);

  return ChannelAbout(
    aboutPage.description,
    aboutPage.viewCount,
    aboutPage.joinDate,
    aboutPage.title,
    [
      for (final e in aboutPage.avatar)
        Thumbnail(Uri.parse(e['url']), e['height'], e['width']),
    ],
    aboutPage.country,
    aboutPage.channelLinks,
  );
}