onTap property

GestureTapCallback? onTap
final

An optional callback that is called when the button is pressed. If null, the button will be displayed in a disabled state.

Implementation

final GestureTapCallback? onTap;