handleScrollNotification method

bool handleScrollNotification(
  1. ScrollNotification notification
)

Implementation

bool handleScrollNotification(ScrollNotification notification) {
  if (!_enableSynchronization || _isHandlingSync) {
    return false;
  }

  if (notification is ScrollStartNotification) {
    _lastScrollOffset = notification.metrics.pixels;
    return false;
  }

  if (notification is ScrollUpdateNotification) {
    return _handleScrollUpdate(notification);
  }

  return false;
}