bottomAppBarPageControlledBtn function

IconButton bottomAppBarPageControlledBtn(
  1. {required int pageNum,
  2. required Icon icon,
  3. required PageController controller}
)

Implementation

IconButton bottomAppBarPageControlledBtn(
        {required int pageNum,
        required Icon icon,
        required PageController controller}) =>
    IconButton(
      onPressed: () => controller.animateToPage(pageNum,
          duration: const Duration(milliseconds: 300),
          curve: Curves.fastEaseInToSlowEaseOut),
      icon: icon,
    );