BodyAlertImage constructor

const BodyAlertImage({
  1. Key? key,
  2. required Function onClose,
  3. double? width,
  4. required double borderRadius,
  5. required String path,
  6. required int type,
  7. required double closeIconSize,
  8. required BoxFit? fit,
  9. Color? loadingColor,
})

Implementation

const BodyAlertImage({
  super.key,
  required this.onClose, // Function to call when the close icon is pressed.
  this.width, // Optional width for the image.
  required this.borderRadius, // Radius for rounding the corners of the image.
  required this.path, // Path or URL of the image.
  required this.type, // Type of the image source (web, asset, or local file).
  required this.closeIconSize, // Size of the close icon.
  required this.fit, // BoxFit for the image.
  this.loadingColor, // Optional color for the loading indicator.
});