onDeleted property
VoidCallback?
get
onDeleted
Called when the user taps the deleteIcon to delete the chip.
If null, the delete button will not appear on the chip.
The chip will not automatically remove itself: this just tells the app that the user tapped the delete button. In order to delete the chip, you have to do something similar to the following sample:
{@tool dartpad} This sample shows how to use onDeleted to remove an entry when the delete button is tapped.
** See code in examples/api/lib/material/chip/deletable_chip_attributes.on_deleted.0.dart ** {@end-tool}
Implementation
VoidCallback? get onDeleted;