defaultScrollNotificationPredicate function Null safety

bool defaultScrollNotificationPredicate(
  1. ScrollNotification notification
)

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

Implementation

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