onPressed property

VoidCallback? onPressed
final

Called when the choice is picked; null disables it.

Implementation

final VoidCallback? onPressed;