defaultScrollNotificationPredicate function
- 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;
}