onPress property

VoidCallback? onPress
final

You can do what you want after pressed.

Implementation

final VoidCallback? onPress;