Embed constructor

Embed({
  1. String? url,
  2. int? width,
  3. int? height,
  4. List<Param>? params,
})

Constructor for the Embed class.

The constructor initializes an Embed object with optional named parameters:

  • url: The URL attribute of the embed.
  • width: The width attribute of the embed.
  • height: The height attribute of the embed.
  • params: List of Param objects representing media parameters.

The width and height parameters are optional and will default to 0 if not provided. The params parameter is also optional and can be set to null if not provided.

Implementation

Embed({
  this.url,
  this.width,
  this.height,
  this.params,
});