adaptNotificationWithCallback method

Widget adaptNotificationWithCallback(
  1. Widget notification,
  2. VoidCallback closeCallback
)

Adapte une notification avec un callback de fermeture spécifique Cette méthode est utilisée par OverlayNotificationManager

Implementation

Widget adaptNotificationWithCallback(
  Widget notification,
  VoidCallback closeCallback,
) {
  final adapter = _findAdapterFor(notification);
  if (adapter != null) {
    return adapter.adaptNotification(notification, closeCallback);
  }
  return notification;
}