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