getColorForType static method
Implementation
static Color getColorForType(CustomAlertDialogType type) {
switch (type) {
case CustomAlertDialogType.warning:
return Colors.orange;
case CustomAlertDialogType.success:
return Colors.green;
case CustomAlertDialogType.error:
return Colors.red;
case CustomAlertDialogType.info:
default:
return Colors.blue;
}
}