Trailer constructor

Trailer({
  1. String? url,
  2. String? pubdate,
  3. int? length,
  4. String? type,
  5. int? season,
  6. String? value,
})

Constructor for creating a Trailer object.

The constructor initializes a Trailer object with optional named parameters:

  • url: The URL attribute value of the trailer.
  • pubdate: The pubdate attribute value of the trailer.
  • length: The length attribute value of the trailer.
  • type: The type attribute value of the trailer.
  • season: The season attribute value of the trailer.
  • value: The value of the trailer.

Implementation

Trailer({
  this.url,
  this.pubdate,
  this.length,
  this.type,
  this.season,
  this.value,
});