onPressed property

dynamic Function()? onPressed
final

onPressed expects a function that will be executed on button press.

Implementation

final Function()? onPressed;