setDirection method

  1. @ControllerProps(NodeProps.kDirection)
void setDirection(
  1. ViewPagerRenderViewModel renderViewModel,
  2. String direction
)

Implementation

@ControllerProps(NodeProps.kDirection)
void setDirection(ViewPagerRenderViewModel renderViewModel, String direction) {
  if (direction == 'vertical') {
    renderViewModel.isVertical = true;
  } else {
    renderViewModel.isVertical = false;
  }
}