onPressed property

VoidCallback? onPressed
final

Called when the option is pressed; null draws it disabled.

Implementation

final VoidCallback? onPressed;