redBox method

ColoredBox redBox()

Wraps the widget in a red colored box.

Uses Colors.red as the background color.

Returns a ColoredBox with red background containing this widget.

Implementation

ColoredBox redBox() => coloredBox(Colors.red);