onPressed property

VoidCallback onPressed
final

onPressed is a void function well be called when the button pressed.

Implementation

final VoidCallback onPressed;