InjectedScrollingImp constructor

InjectedScrollingImp({
  1. double initialScrollOffset = 0.0,
  2. bool keepScrollOffset = true,
  3. OnScroll? onScroll,
  4. int onScrollEndedDelay = 300,
})

Implementation

InjectedScrollingImp({
  this.initialScrollOffset = 0.0,
  this.keepScrollOffset = true,
  this.onScroll,
  this.onScrollEndedDelay = 300,
}) : super(
        creator: () => initialScrollOffset,
        initialState: initialScrollOffset,
        autoDisposeWhenNotUsed: true,
        stateInterceptorGlobal: null,
      ) {
  _resetDefaultState = () {
    _controller = null;
    _maxScrollExtent = null;
    _userScrollDirection = null;
    _removeFromInjectedList = null;
    hasStartedScrolling = false;
    hasStartedScrollingForward = false;
    hasStartedScrollingReverse = false;
    hasEndedScrolling = false;
    hasReachedMinExtent = false;
    hasReachedMaxExtent = false;
    isScrolling = false;
  };
  _resetDefaultState();
}