OpaqueTap constructor

const OpaqueTap({
  1. Key? key,
  2. required void onTap(),
  3. required Widget child,
})
return GestureDetector(
 onTap: onTap,
 child: child,
 behavior: HitTestBehavior.opaque,
);

Implementation

const OpaqueTap({
  Key? key,
  required this.onTap,
  required this.child,
}) : super(key: key);