onListen<T extends Notification> method
NotificationListener<T>
onListen<T extends Notification>(
- NotificationListenerCallback<
T> onNotification, { - Key? key,
行为监控 >>>
Implementation
NotificationListener<T> onListen<T extends Notification>(
NotificationListenerCallback<T> onNotification,
{Key? key}) {
return NotificationListener<T>(
key: key,
child: this,
onNotification: onNotification,
);
}