TdTabController constructor

TdTabController({
  1. int initialIndex = 0,
  2. required int length,
  3. required TickerProvider vsync,
})

Implementation

TdTabController({
  int initialIndex = 0,
  required this.length,
  required TickerProvider vsync,
})  : _index = initialIndex,
      _animationController = AnimationController.unbounded(
        value: initialIndex.toDouble(),
        duration: const Duration(milliseconds: 300),
        vsync: vsync,
      );