withBackgroundColor method

Widget withBackgroundColor(
  1. Color color
)

Wraps the widget with a background color.

Implementation

Widget withBackgroundColor(Color color) {
  return Container(
    color: color,
    child: this,
  );
}