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