whatTitle method

String? whatTitle()

Implementation

String? whatTitle() {
  switch (options.type) {
    case QuickAlertType.success:
      return 'Success';
    case QuickAlertType.error:
      return 'Error';
    case QuickAlertType.warning:
      return 'Warning';
    case QuickAlertType.confirm:
      return 'Are You Sure?';
    case QuickAlertType.info:
      return 'Info';
    case QuickAlertType.custom:
      return null;
    case QuickAlertType.loading:
      return null;
    default:
      return null;
  }
}