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