onClose property

VoidCallback? onClose
final

A callback to call when the pill's close button is pressed.

If this argument is null, the close button will be hidden.

Implementation

final VoidCallback? onClose;