alertImage method
void
alertImage({})
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
);
}