absorbPointer method

Widget absorbPointer({
  1. Key? key,
  2. bool absorbing = true,
})

A widget that absorbs pointers during hit testing.

If you want to make widgets behind this widget receive pointer events, use IgnorePointer instead.

Implementation

Widget absorbPointer({
  Key? key,
  bool absorbing = true,
}) {
  return AbsorbPointer(
    key: key,
    absorbing: absorbing,
    child: this,
  );
}