previous method
Animates to the previous tab.
Implementation
void previous({
Duration duration = kTabScrollDuration,
Curve curve = Curves.ease,
}) {
if (_controller.index == 0) return;
animateTo(_controller.index - 1);
}
Animates to the previous tab.
void previous({
Duration duration = kTabScrollDuration,
Curve curve = Curves.ease,
}) {
if (_controller.index == 0) return;
animateTo(_controller.index - 1);
}