setOnDisAppear method

  1. @ControllerProps(NodeProps.kOnDisAppear)
void setOnDisAppear(
  1. ListViewModel renderViewModel,
  2. bool enable
)

Implementation

@ControllerProps(NodeProps.kOnDisAppear)
void setOnDisAppear(ListViewModel renderViewModel, bool enable) {
  var gestureDispatcher = renderViewModel.gestureDispatcher;
  if (gestureDispatcher is NativeScrollGestureDispatcher) {
    gestureDispatcher.disAppearEventEnable = enable;
  }
}