bg method

VContainer bg(
  1. Color color
)

Sets the background color.

Implementation

VContainer bg(Color color) => VContainer(
  child: child,
  alignment: alignment,
  padding: padding,
  margin: margin,
  width: _width,
  height: _height,
  decoration:
      (decoration?.copyWith(color: color)) ?? BoxDecoration(color: color),
);