SearchResult.channel constructor

const SearchResult.channel(
  1. ChannelId id,
  2. String name,
  3. String description,
  4. int videoCount,
)

Metadata related to a search query result (channel)

Implementation

const factory SearchResult.channel(
  /// Channel id.
  ChannelId id,

  /// Channel name.
  String name,

  /// Description snippet.
  /// Can be empty.
  String description,

  /// Channel uploaded videos.
  int videoCount,
) = SearchChannel;