onPressed method

GestureDetector onPressed(
  1. void onTap(
      )
    )

    Implementation

    GestureDetector onPressed(void Function() onTap)=> GestureDetector(
      child: this,
      onTap: onTap,
    );