onPressed property

(dynamic Function()?) onPressed
final

defines the function to execute on press of this button.

Implementation

final Function()? onPressed;