onTap method
Returns a new GestureDetector widget with the given onTap callback.
Implementation
GestureDetector onTap(void Function()? onTap) {
return GestureDetector(onTap: onTap, child: this);
}
Returns a new GestureDetector widget with the given onTap callback.
GestureDetector onTap(void Function()? onTap) {
return GestureDetector(onTap: onTap, child: this);
}