onListen<T extends Notification> method

NotificationListener<T> onListen<T extends Notification>(
  1. NotificationListenerCallback<T> onNotification, {
  2. Key? key,
})

行为监控 >>>

Implementation

NotificationListener<T> onListen<T extends Notification>(
    NotificationListenerCallback<T> onNotification,
    {Key? key}) {
  return NotificationListener<T>(
    key: key,
    child: this,
    onNotification: onNotification,
  );
}