whiteBox method

ColoredBox whiteBox()

Wraps the widget in a ColoredBox with white color.

Uses CupertinoColors.white which provides a pure white background. This color does not adapt to light/dark mode and remains consistently white.

Returns a ColoredBox containing the current widget with white background.

Example:

Text('Light Mode').whiteBox()

Implementation

ColoredBox whiteBox() => coloredBox(CupertinoColors.white);