InjectedScrollingImp constructor
InjectedScrollingImp({})
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();
}