SearchVideo constructor

const SearchVideo(
  1. VideoId id,
  2. String title,
  3. String author,
  4. String description,
  5. String duration,
  6. int viewCount,
  7. List<Thumbnail> thumbnails,
  8. String? uploadDate,
  9. bool isLive,
  10. String channelId,
)

Initialize a SearchVideo instance.

Implementation

//@With<BaseSearchContent>()
const factory SearchVideo(
  /// Video ID.
  VideoId id,

  /// Video title.
  String title,

  /// Video author.
  String author,

  /// Video description snippet. (Part of the full description if too long)
  String description,

  /// Video duration as String, HH:MM:SS
  String duration,

  /// Video View Count
  int viewCount,

  /// Video thumbnail
  List<Thumbnail> thumbnails,

  /// Video upload date - As string: 5 years ago.
  String? uploadDate,

  /// True if this video is a live stream.
  // ignore: avoid_positional_boolean_parameters
  bool isLive,

  /// Channel id
  String channelId,
) = _SearchVideo;