onPressed property

void Function(bool s)? onPressed
final

Callback, called when this button is pressed.

Implementation

final void Function(bool s)? onPressed;