setPaddingTop method

  1. @ControllerProps(NodeProps.kPaddingTop)
void setPaddingTop(
  1. ListViewModel renderViewModel,
  2. Object? paddingTop
)

Implementation

@ControllerProps(NodeProps.kPaddingTop)
void setPaddingTop(ListViewModel renderViewModel, Object? paddingTop) {
  if (paddingTop is int) {
    renderViewModel.paddingTop = paddingTop.toDouble();
  } else if (paddingTop is double) {
    renderViewModel.paddingTop = paddingTop;
  } else {
    renderViewModel.paddingTop = 0.0;
  }
}