indicatorAnimation property

TabIndicatorAnimation? indicatorAnimation
final

Specifies the animation behavior of the tab indicator.

If this is null, then the value of TabBarThemeData.indicatorAnimation is used. If that is also null, then the tab indicator will animate linearly if the indicatorSize is TabBarIndicatorSize.tab, otherwise it will animate with an elastic effect if the indicatorSize is TabBarIndicatorSize.label.

This sample shows how to customize the animation behavior of the tab indicator by using the indicatorAnimation property.
link

To create a local project with this code sample, run:
flutter create --sample=material.TabBar.indicatorAnimation.1 mysample

See also:

Implementation

final TabIndicatorAnimation? indicatorAnimation;