InjectedPageTabImp constructor
InjectedPageTabImp({})
Implementation
InjectedPageTabImp({
int initialIndex = 0,
required int length,
this.duration = kTabScrollDuration,
this.curve = Curves.ease,
this.viewportFraction = 1.0,
this.keepPage = true,
}) : super(
creator: () => initialIndex,
initialState: initialIndex,
autoDisposeWhenNotUsed: true,
stateInterceptorGlobal: null,
) {
_resetDefaultState = () {
_tabController = null;
_pageController = null;
_pageIndexIsChanging = false;
this.initialIndex = initialIndex;
_length = length;
_ticker = null;
};
_resetDefaultState();
}