shouldDisableGestures method Null safety

dynamic shouldDisableGestures(
  1. {required bool disable}
)

Use this method to disable gestures during runtime, like on certain pages using OnPageChangeCallback If you want to disable gestures from start use LiquidSwipe.disableUserGesture

Implementation

shouldDisableGestures({required bool disable}) {
  assert(_provider != null,
      "LiquidController not attached to any LiquidSwipe Widget.");
  _provider?.setUserGesture = disable;
}