NotificationExtension extension

Extension qui permet d'afficher facilement des notifications depuis n'importe quel contexte

on

Methods

showConfirmation({String? title, required String message, Duration duration = const Duration(seconds: 4), VoidCallback? onClose}) → void

Available on BuildContext, provided by the NotificationExtension extension

Affiche une notification de confirmation
showError({String? title, required String message, Duration duration = const Duration(seconds: 4), VoidCallback? onClose}) → void

Available on BuildContext, provided by the NotificationExtension extension

Affiche une notification d'erreur
showInfo({String? title, required String message, Duration duration = const Duration(seconds: 4), VoidCallback? onClose}) → void

Available on BuildContext, provided by the NotificationExtension extension

Affiche une notification d'information
showNotification(Widget notification, {Duration duration = const Duration(seconds: 4), EdgeInsets? margin, bool requireSafeArea = true}) → void

Available on BuildContext, provided by the NotificationExtension extension

Affiche une notification personnalisée
showSuccess({String? title, required String message, Duration duration = const Duration(seconds: 4), VoidCallback? onClose}) → void

Available on BuildContext, provided by the NotificationExtension extension

Affiche une notification de succès
showWarning({String? title, required String message, Duration duration = const Duration(seconds: 4), VoidCallback? onClose}) → void

Available on BuildContext, provided by the NotificationExtension extension

Affiche une notification d'avertissement