info<T> method
Implementation
Future<T?> info<T>({
String? title,
String? content,
String? lottiePath,
EdgeInsets? lottiePadding,
String? labelButton,
Function()? onClicked,
Widget? customWidget,
bool isBackAfterYes = true,
}) async {
return await showAnimatedDialog(
context: Get.context!,
barrierDismissible: true,
animationType: animationType,
curve: Curves.fastOutSlowIn,
duration: const Duration(milliseconds: 500),
builder: (_) => InfoDialog(
title: title,
content: content,
lottiePath: lottiePath,
lottiePadding: lottiePadding,
labelButton: labelButton,
customWidget: customWidget,
onPressed: () {
if (isBackAfterYes) Get.back();
if (onClicked != null) onClicked();
},
),
);
}