OnPageChangeCallback typedef Null safety

OnPageChangeCallback = void Function(int activePageIndex)

Callback to provide the current page Index whenever it changes

Returns an int value.

Simple Usage :

Create your own method

pageChangeCallback(int page) {

add this methods as callback to LiquidSwipe.onPageChangeCallback

      pages: pages,
      onPageChangeCallback: pageChangeCallback,

see also : LiquidController.currentPage


typedef OnPageChangeCallback = void Function(int activePageIndex);