TdTabController constructor
TdTabController({
- int initialIndex = 0,
- required int length,
- 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,
);