rightButton static method

GestureDetector rightButton({
  1. required int pageNumber,
  2. required dynamic onTap(
    1. int
    ),
})

Implementation

static GestureDetector rightButton(
    {required int pageNumber, required Function(int) onTap}) {
  return GestureDetector(
    onTap: () => onTap(pageNumber + 1),
    child: Column(children: [arrowIcon(Icons.arrow_forward_ios), _thing]),
  );
}