dialog method
Implementation
Future<dynamic> dialog({
required BuildContext context,
required PopupType type,
required String title,
required String message,
String? buttonLabel,
Color? buttonColor,
Icon? icon,
List<Widget> buttons = const [],
}) {
return PopupDialog(
header: PopupHeader(
icon: icon ?? config.iconByType[type],
title: PopupText(text: title),
),
content: PopupMessage(
message: PopupText(text: message),
config: config,
height: type == PopupType.choose ? config.chooseMessageHeight : config.shortMessageHeight,
),
config: config,
buttons: buttons,
).show(context);
}