interceptNotificationListener<T extends Notification> method

Widget interceptNotificationListener<T extends Notification>({
  1. NotificationListenerCallback<T>? onNotification,
})

Implementation

Widget interceptNotificationListener<T extends Notification>(
        {NotificationListenerCallback<T>? onNotification}) =>
    NotificationListener<T>(
        onNotification: (T notification) {
          if (onNotification != null) onNotification(notification);
          return true;
        },
        child: this);