gesture method

Material gesture({
  1. GestureTapCallback? onTap,
  2. GestureTapCallback? onDoubleTap,
  3. GestureLongPressCallback? onLongPress,
})

Implementation

Material gesture({
  GestureTapCallback? onTap,
  GestureTapCallback? onDoubleTap,
  GestureLongPressCallback? onLongPress,
}) {
  return Material(
    child: InkWell(
      child: this,
      onTap: onTap,
      onDoubleTap: onDoubleTap,
      onLongPress: onLongPress,
    ),
  );
}