scrollNotificationPredicate property
A predicate for ScrollNotification, used to determine whether observation can be triggered.
Generally combined with defaultScrollNotificationPredicate to check
whether notification.depth == 0, which means that the notification did
not bubble through any intervening scrolling widgets.
This can avoid the unnecessary observation calculations caused by
intervening scrolling widgets, which in turn improves performance.
Implementation
final ScrollNotificationPredicate? scrollNotificationPredicate;