Channel constructor Null safety

Channel(
  1. {required String id,
  2. required String name,
  3. String? englishName,
  4. required ChannelType type,
  5. String? photo,
  6. Organization? org,
  7. String? suborg,
  8. String? banner,
  9. String? twitter,
  10. String? videoCount,
  11. String? subscriberCount,
  12. String? viewCount,
  13. int? clipCount,
  14. required Language lang,
  15. String? publishedAt,
  16. bool? inactive,
  17. String? description}
)

Returns a new Channel instance.

Implementation

Channel({
  required String id,
  required String name,
  String? englishName,
  required ChannelType type,
  String? photo,
  this.org,
  this.suborg,
  this.banner,
  this.twitter,
  this.videoCount,
  this.subscriberCount,
  this.viewCount,
  this.clipCount,
  required this.lang,
  this.publishedAt,
  this.inactive,
  this.description,
}) : super(
  id: id,
  name: name,
  type: type,
  photo: photo,
);