redBox method

ColoredBox redBox()

Wraps the widget in a ColoredBox with system red color.

Uses CupertinoColors.systemRed which adapts to light/dark mode. This is the standard red color used throughout iOS interfaces.

Returns a ColoredBox containing the current widget with red background.

Example:

Icon(CupertinoIcons.heart).redBox()

Implementation

ColoredBox redBox() => coloredBox(CupertinoColors.systemRed);