onPressed property

VoidCallback onPressed
final

The callback that is called when the button is tapped.

This attribute must not be null.

Implementation

final VoidCallback onPressed;