ChannelVideo constructor

const ChannelVideo(
  1. VideoId videoId,
  2. String videoTitle,
  3. Duration videoDuration,
  4. String videoThumbnail,
  5. String videoUploadDate,
  6. int videoViews,
)

Implementation

const factory ChannelVideo(
  /// Video ID.
  VideoId videoId,

  /// Video title.
  String videoTitle,

  /// Video duration
  Duration videoDuration,

  /// Video thumbnail
  String videoThumbnail,

  /// Video upload date.
  /// Formatted like 10 hours ago
  String videoUploadDate,

  /// Video view count.
  int videoViews,
) = _ChannelVideo;