onTap method

Widget onTap(
  1. void onTap(), {
  2. bool autoFocus = false,
})

Implementation

Widget onTap(void Function() onTap, {bool autoFocus = false}) => InkWell(
      onTap: onTap,
      autofocus: autoFocus,
      child: this,
    );