onNotification property
The function called when a notification of the appropriate type arrives at this location in the tree, and it is the same as NotificationListener.onNotification.
Implementation
final bool Function(Notification notification)? onNotification;