background method

Widget background(
  1. Color color
)

Fill with color behind the widget.

Implementation

Widget background(Color color) => ColoredBox(color: color, child: this);