onPressed property

dynamic Function() onPressed
final

function to call on the button press

Implementation

final Function() onPressed;