NotificationListenerCallback<T extends Notification> typedef

NotificationListenerCallback<T extends Notification> = bool Function(T notification)

Signature for Notification listeners.

Return true to cancel the notification bubbling. Return false to allow the notification to continue to be dispatched to further ancestors.

NotificationListener is useful when listening scroll events in ListView,NestedScrollView,GridView or any Scrolling widgets. Used by NotificationListener.onNotification.

Implementation

typedef NotificationListenerCallback<T extends Notification> = bool Function(T notification);