onPressed property
OnPressed<R> ?
onPressed
finalinherited
Called when the button is tapped or otherwise activated. Return values can be used to pass values to whenComplete.
Implementation
final OnPressed<R> onPressed;