NotificationListener<T extends Notification> constructor
- Key? key,
- required Widget child,
- NotificationListenerCallback<
T> ? onNotification,
Creates a widget that listens for notifications.
Implementation
const NotificationListener({
super.key,
required super.child,
this.onNotification,
});