onPressed property
final
Callback, called when the button is tapped or activated other way.
If this is set to null
, the button is disabled.
Implementation
final void Function()? onPressed;
Callback, called when the button is tapped or activated other way.
If this is set to null
, the button is disabled.
final void Function()? onPressed;