bool defaultScrollNotificationPredicate(ScrollNotification notification)

A ScrollNotificationPredicate that checks whether notification.depth == 0, which means that the notification did not bubble through any intervening scrolling widgets.

Source

bool defaultScrollNotificationPredicate(ScrollNotification notification) {
  return notification.depth == 0;
}