alertImage method

void alertImage({
  1. required String path,
  2. required int type,
  3. bool? cancelable = true,
  4. Function? onClose,
  5. double? width,
  6. double? borderRadius,
  7. double paddingFromPhoneBorder = 10,
  8. double closeIconSize = 25,
  9. BoxFit? fit = BoxFit.contain,
  10. double? fixedSize,
})

Implementation

void alertImage({
  required String path,
  required int type,
  bool? cancelable = true,
  Function? onClose,
  double? width,
  double? borderRadius,
  double paddingFromPhoneBorder = 10,
  double closeIconSize = 25,
  BoxFit? fit = BoxFit.contain,
  double? fixedSize,
}) {
  showCustomAlert(
    body: BodyAlertImage(
      type: type,
      onClose: onClose ?? hideAlert,
      borderRadius: borderRadius ?? AwesomeAlertTheme().borderRadius,
      path: path,
      width: width,
      closeIconSize: closeIconSize,
      fit: fit,
    ),
    cancelable: cancelable ?? true,
    paddingScreen: paddingFromPhoneBorder,
    cornerRadius: borderRadius ?? AwesomeAlertTheme().borderRadius,
    fixedSize: fixedSize, // Passando o fixedSize para showCustomAlert
  );
}