Src constructor

Src({
  1. required String? url,
  2. required int? width,
})

Constructor for creating a Src object.

The constructor initializes a Src object with required named parameters:

  • url: The URL of the image source.
  • width: The width of the image source in pixels.

Implementation

Src({
  required this.url,
  required this.width,
});