clickButton function

Future<void> clickButton(
  1. BuildContext context,
  2. List<AnimationController> aniController,
  3. ScrollController singleChildScrollController,
  4. int stepsListLength,
  5. GlobalKey<State<StatefulWidget>> key,
)

Implementation

Future<void> clickButton(
  BuildContext context,
  List<AnimationController> aniController,
  ScrollController singleChildScrollController,
  int stepsListLength,
  GlobalKey key,
) async {
  final customPageViewModel = Provider.of<CustomPageViewModel>(context, listen: false);
  customPageViewModel.previousPage(aniController, singleChildScrollController, stepsListLength, key);
}