NotificationListener<T extends Notification> constructor
Null safety
- {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,
});