NotificationListenerCallback<T extends Notification> typedef

bool NotificationListenerCallback (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.

Used by NotificationListener.onNotification.

Implementation

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