onTap property

GestureTapCallback? onTap
final

A callback that registers the user's click anywhere. An alternative to primaryAction

Implementation

final GestureTapCallback? onTap;