onPressed property Null safety

VoidCallback? onPressed
final

Called when this button is pressed.

Implementation

final VoidCallback? onPressed;