ChannelLink constructor

const ChannelLink(
  1. String title,
  2. Uri url,
  3. @Deprecated('As of at least 26-08-2023 YT no longer provides icons for links, so this URI is always empty') Uri icon
)

Initialize an instance of ChannelLink

Implementation

const factory ChannelLink(
  /// Link title.
  String title,

  /// Link URL.
  /// Already decoded with the YouTube shortener already taken out.
  Uri url,

  /// Link Icon URL.
  @Deprecated(
    'As of at least 26-08-2023 YT no longer provides icons for links, so this URI is always empty',
  )
  Uri icon,
) = _ChannelLink;