onScrollNotification method
Implementation
bool onScrollNotification(UserScrollNotification notification) {
ScrollDirection direction = notification.direction;
if (direction == ScrollDirection.idle) return true;
bool newState = direction != ScrollDirection.reverse;
scrollDirectionController.add(newState);
return false;
}