greenBox method

ColoredBox greenBox()

Wraps the widget in a ColoredBox with system green color.

Uses CupertinoColors.systemGreen which adapts to light/dark mode. This is the standard green color used throughout iOS interfaces, commonly used for success states or positive actions.

Returns a ColoredBox containing the current widget with green background.

Example:

Icon(CupertinoIcons.checkmark).greenBox()

Implementation

ColoredBox greenBox() => coloredBox(CupertinoColors.systemGreen);