onPressed property

VoidCallback? onPressed
final

The main action; null disables the main half.

Implementation

final VoidCallback? onPressed;