Video constructor Null safety

Video(
  1. {required String id,
  2. required String title,
  3. required VideoType type,
  4. String? topicId,
  5. String? publishedAt,
  6. required String availableAt,
  7. required int? duration,
  8. required VideoStatus status,
  9. String? startScheduled,
  10. String? startActual,
  11. String? endActual,
  12. int? liveViewers,
  13. String? description,
  14. int? songcount,
  15. String? channelId,
  16. ChannelMin? channel,
  17. String? language}
)

Returns a new Video instance.

Implementation

Video({
  required this.id,
  required this.title,
  required this.type,
  this.topicId,
  this.publishedAt,
  required this.availableAt,
  required this.duration,
  required this.status,
  this.startScheduled,
  this.startActual,
  this.endActual,
  this.liveViewers,
  this.description,
  this.songcount,
  this.channelId,
  this.channel,
  this.language,
});