ignorePointer method

Widget ignorePointer({
  1. Key? key,
  2. bool ignoring = true,
  3. Widget? child,
})

Makes this widget completely ignore interaction events. Widgets behind it can still receive events.

Implementation

Widget ignorePointer({
  Key? key,
  bool ignoring = true,
  Widget? child,
}) {
  return IgnorePointer(
    key: key,
    ignoring: ignoring,
    child: child ?? this,
  );
}