OnPageChangeCallback typedef

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) {
  ...performActions
}

add this methods as callback to LiquidSwipe.onPageChangeCallback

    LiquidSwipe(
      pages: pages,
      onPageChangeCallback: pageChangeCallback,
    ),

see also : LiquidController.currentPage

Implementation

typedef OnPageChangeCallback = void Function(int activePageIndex);