deleteIcon property

  1. @override
Widget? deleteIcon
final

The icon displayed when onDeleted is set.

If deleteIconColor is provided, it will be used as the color of the delete icon. If deleteIconColor is null, then the icon will use the color specified in the chip IconTheme. If the IconTheme is null, then the icon will use the color specified in the ThemeData.iconTheme.

If a size is specified in the chip IconTheme, then the delete icon will use that size. Otherwise, defaults to 18 pixels.

Defaults to an Icon widget set to use Icons.clear. If ThemeData.useMaterial3 is false, then defaults to an Icon widget set to use Icons.cancel.

Implementation

@override
final Widget? deleteIcon;