setOnWillAppear method

  1. @ControllerProps(NodeProps.kOnWillAppear)
void setOnWillAppear(
  1. ListViewModel renderViewModel,
  2. bool enable
)

Implementation

@ControllerProps(NodeProps.kOnWillAppear)
void setOnWillAppear(ListViewModel renderViewModel, bool enable) {
  var gestureDispatcher = renderViewModel.gestureDispatcher;
  if (gestureDispatcher is NativeScrollGestureDispatcher) {
    gestureDispatcher.willAppearEventEnable = enable;
  }
}