Content constructor

Content({
  1. String? url,
  2. String? type,
  3. int? fileSize,
  4. String? medium,
  5. bool? isDefault,
  6. String? expression,
  7. int? bitrate,
  8. double? framerate,
  9. double? samplingrate,
  10. int? channels,
  11. int? duration,
  12. int? height,
  13. int? width,
  14. String? lang,
})

Constructor for the Content class.

The constructor initializes a Content object with optional named parameters:

  • url: The URL of the media content.
  • type: The MIME type of the media content.
  • fileSize: The file size of the media content in bytes.
  • medium: The medium of the media content.
  • isDefault: Indicates if the media content is the default one.
  • expression: The expression of the media content.
  • bitrate: The bitrate of the media content in bits per second.
  • framerate: The framerate of the media content.
  • samplingrate: The sampling rate of the media content.
  • channels: The number of audio channels in the media content.
  • duration: The duration of the media content in seconds.
  • height: The height of the media content in pixels.
  • width: The width of the media content in pixels.
  • lang: The language of the media content.

All parameters are optional and can be set to null if not provided.

Implementation

Content({
  this.url,
  this.type,
  this.fileSize,
  this.medium,
  this.isDefault,
  this.expression,
  this.bitrate,
  this.framerate,
  this.samplingrate,
  this.channels,
  this.duration,
  this.height,
  this.width,
  this.lang,
});