animationDuration property
Controls the duration of TabController and TabBarView animations.
Defaults to kTabScrollDuration.
Implementation
@override
Duration get animationDuration => _indexedController.animationDuration;
Implementation
set animationDuration(Duration value) {
if (value == _indexedController.animationDuration) return;
_indexedController
..removeListener(_onControllerChanged)
..dispose();
_indexedController = TabController(
animationDuration: value,
initialIndex: _indexedController.index,
length: keys.length,
vsync: _vsync,
);
_proxyAnimation.parent = _indexedController.animation;
_indexedController.addListener(_onControllerChanged);
notifyListeners();
}