setOnWillDisAppear method

  1. @ControllerProps(NodeProps.kOnWillDisAppear)
void setOnWillDisAppear(
  1. ListViewModel renderViewModel,
  2. bool enable
)

Implementation

@ControllerProps(NodeProps.kOnWillDisAppear)
void setOnWillDisAppear(ListViewModel renderViewModel, bool enable) {
  var gestureDispatcher = renderViewModel.gestureDispatcher;
  if (gestureDispatcher is NativeScrollGestureDispatcher) {
    gestureDispatcher.willDisAppearEventEnable = enable;
  }
}