setPreloadItemNumber method

  1. @ControllerProps(NodeProps.kPreloadItemNumber)
void setPreloadItemNumber(
  1. ListViewModel renderViewModel,
  2. int number
)

Implementation

@ControllerProps(NodeProps.kPreloadItemNumber)
void setPreloadItemNumber(ListViewModel renderViewModel, int number) {
  var gestureDispatcher = renderViewModel.gestureDispatcher;
  if (gestureDispatcher is NativeScrollGestureDispatcher) {
    gestureDispatcher.preloadItemNumber = number;
  }
}