setBGColor method
Set background color. Calling this will also automatically update the box decoration internally.
c
: color.
Implementation
void setBGColor(Color c) {
spwmlParams.p.containerParams!.color = c;
// update decoration.
spwmlParams.p.containerParams!.decoration = _getDecoration();
}