onPressed property

VoidCallback? onPressed
final

The main action. Null disables the main half, which leaves the focus order and reads as disabled; the menu half stays.

Implementation

final VoidCallback? onPressed;