InjectedPageTabImp constructor

InjectedPageTabImp({
  1. int initialIndex = 0,
  2. required int length,
  3. Duration duration = kTabScrollDuration,
  4. Curve curve = Curves.ease,
  5. double viewportFraction = 1.0,
  6. bool keepPage = true,
})

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