showSuccessMessage method

void showSuccessMessage({
  1. String? title,
  2. required String message,
  3. WidgetRef? ref,
})

Affiche une notification de succès

context.showSuccessMessage(
  title: 'Enregistré',
  message: 'Vos modifications ont été enregistrées'
);

Implementation

void showSuccessMessage({
  String? title,
  required String message,
  WidgetRef? ref,
}) {
  _getNotifier(ref)?.showSuccess(message, title: title);
}