getColorForType static method

Color getColorForType(
  1. CustomAlertDialogType type
)

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;
  }
}