onNotification method Null safety

bool onNotification(
  1. Notification notification
)

Called when a notification of the appropriate type arrives at this location in the tree.

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

Implementation

bool onNotification(Notification notification);