warning static method

void warning({
  1. required String message,
  2. String? title,
  3. IconData? icon,
  4. Duration? duration,
  5. String? actionLabel,
  6. VoidCallback? onAction,
  7. bool showCloseIcon = false,
  8. VoidCallback? onDismiss,
})

Implementation

static void warning({
  required String message,
  String? title,
  IconData? icon,
  Duration? duration,
  String? actionLabel,
  VoidCallback? onAction,
  bool showCloseIcon = false,
  VoidCallback? onDismiss,
}) => snackBar(
  message: message,
  title: title,
  type: UToastType.warning,
  icon: icon,
  duration: duration,
  actionLabel: actionLabel,
  onAction: onAction,
  showCloseIcon: showCloseIcon,
  onDismiss: onDismiss,
);