NotificationListener<T extends Notification> constructor

const NotificationListener<T extends Notification>({Key key, @required Widget child, NotificationListenerCallback<T> onNotification })

Creates a widget that listens for notifications.

Implementation

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