onPressed property

VoidCallback onPressed
final

The callback that is called when this option is selected.

If this is set to null, the option cannot be selected.

When used in a SimpleDialog, this will typically call Navigator.pop with a value for showDialog to complete its future with.

Implementation

final VoidCallback onPressed