onTap method
Wraps the current Widget
in a GestureDetector
widget with a tap gesture callback.
Implementation
GestureDetector onTap(VoidCallback callback) =>
GestureDetector(onTap: callback, child: this);
Wraps the current Widget
in a GestureDetector
widget with a tap gesture callback.
GestureDetector onTap(VoidCallback callback) =>
GestureDetector(onTap: callback, child: this);