cancelIcon property
Custom icon widget for the cancel (dismiss) button.
When non-null, replaces the default CupertinoIcons.xmark glyph. The provided widget is rendered as-is inside the glass pill, so it should already carry its own color and size:
cancelIcon: Icon(CupertinoIcons.xmark_circle_fill,
color: Colors.white, size: 22),
When null, the default × icon is used with cancelButtonColor and cancelIconSize.
Implementation
final Widget? cancelIcon;