action method

Material action({
  1. GestureTapCallback? onClick,
  2. GestureTapCallback? onDoubleClick,
  3. GestureLongPressCallback? onLongPress,
})

Implementation

Material action({
  GestureTapCallback? onClick,
  GestureTapCallback? onDoubleClick,
  GestureLongPressCallback? onLongPress,
}) {
  return Material(
    color: Colors.transparent,
    child: InkWell(
      child: this,
      onTap: onClick,
      onDoubleTap: onDoubleClick,
      onLongPress: onLongPress,
      highlightColor: Colors.transparent,
    ),
  );
}