onLongPress method

Widget? onLongPress(
  1. void function()?, {
  2. bool ink = false,
})

Implementation

Widget? onLongPress(void Function()? function, {bool ink = false}) {
  return function != null
      ? ink
          ? InkWell(
              onLongPress: function,
              child: this,
            )
          : GestureDetector(
              onLongPress: function,
              child: this,
            )
      : this;
}