onScrollNotification method

bool onScrollNotification(
  1. UserScrollNotification notification
)

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