onPressed property Null safety

VoidCallback? onPressed
final

Called when the action is pressed.

Implementation

final VoidCallback? onPressed;