animationDuration property

  1. @override
Duration animationDuration
override

Controls the duration of TabController and TabBarView animations.

Defaults to kTabScrollDuration.

Implementation

@override
Duration get animationDuration => _indexedController.animationDuration;
void animationDuration=(Duration value)

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