animateToKey method
Keyed equivalent to TabController.animateTo.
Implementation
void animateToKey(
K key, {
Duration duration = kTabScrollDuration,
Curve curve = Curves.ease,
}) {
_indexedController.animateTo(
max(_keys.indexOf(key), 0),
duration: kTabScrollDuration,
curve: curve,
);
}