success static method

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

Implementation

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