setBackgroundColor method

  1. @ControllerProps(NodeProps.kBackgroundColor)
void setBackgroundColor(
  1. T viewModel,
  2. Object? backgroundColor
)

Implementation

@ControllerProps(NodeProps.kBackgroundColor)
void setBackgroundColor(T viewModel, Object? backgroundColor) {
  if (backgroundColor is int) {
    final color = Color(backgroundColor);
    viewModel.backgroundColor = color;
  }
}