setPaddingBottom method

  1. @ControllerProps(NodeProps.kPaddingBottom)
void setPaddingBottom(
  1. ListViewModel renderViewModel,
  2. Object? paddingBottom
)

Implementation

@ControllerProps(NodeProps.kPaddingBottom)
void setPaddingBottom(ListViewModel renderViewModel, Object? paddingBottom) {
  if (paddingBottom is int) {
    renderViewModel.paddingBottom = paddingBottom.toDouble();
  } else if (paddingBottom is double) {
    renderViewModel.paddingBottom = paddingBottom;
  } else {
    renderViewModel.paddingBottom = 0.0;
  }
}