onPressed property Null safety

void Function() onPressed
final

Called when the button is pressed.

Implementation

final void Function() onPressed;