nextAction method
Implementation
Widget nextAction() => AButton(
// loading: loading,
color: Theme.of(context).primaryColor,
textColor: Colors.white,
text: "Próximo",
onPressed: () async {
validate();
if (fieldValidated) {
await pageController.animateToPage(
pageController.page!.toInt() + 1,
duration: const Duration(milliseconds: 300),
curve: Curves.easeIn,
);
}
},
);