onTap property
dynamic Function()?
onTap
final
The onTap and onLongPress variables are used to define the actions when this widget is selected. If both variables are null, there will be no splash effect.
Implementation
final Function()? onTap;