onPressed property

VoidCallback? onPressed
final

The optional callback function

Implementation

final VoidCallback? onPressed;