destructiveRedBox method

ColoredBox destructiveRedBox()

Wraps the widget in a ColoredBox with destructive red color.

Uses CupertinoColors.destructiveRed which is specifically designed for destructive actions like delete buttons or error states. This color is more vibrant than system red and indicates danger.

Returns a ColoredBox containing the current widget with destructive red background.

Example:

Text('Delete').destructiveRedBox()

Implementation

ColoredBox destructiveRedBox() => coloredBox(CupertinoColors.destructiveRed);