onPressed property

dynamic Function() onPressed
final

onPressed Defines the button's click callback

Implementation

final Function() onPressed;