NotificationListener({Key key, Widget child, NotificationListenerCallback<T> onNotification })

Creates a widget that listens for notifications.

Source

NotificationListener({
  Key key,
  this.child,
  this.onNotification
}) : super(key: key);