onPressed property

GestureTapCallback? onPressed
final
  • onPressed (optional) : A callback function that is called when the button is pressed.

Implementation

final GestureTapCallback? onPressed;