onPress property
dynamic Function()
onPress
final
Fired after the user taps the button.
Implementation
final Function() onPress;
Fired after the user taps the button.
final Function() onPress;