leftButton static method
Implementation
static GestureDetector leftButton({required int pageNumber, int? skip, int? limit, required Function(int) onTap}) {
print('Left Button: $pageNumber ');
return GestureDetector(
onTap: () {
// final int num = pageNumber;
print('Left Button tap: $pageNumber');
// onTap(num);
onTap(pageNumber-1);
},
child: Padding(
padding: const EdgeInsets.only(right: 10.0),
child: Column(children: [arrowIcon(Icons.arrow_back_ios), _thing]),
),
);
}