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({
Key? key,
required Widget child,
this.onNotification,
}) : super(key: key, child: child);