touchDisabled method

Widget touchDisabled({
  1. bool disable = true,
})

Disables touch interactions for the widget by wrapping it with AbsorbPointer.

Implementation

Widget touchDisabled({bool disable = true}) {
  return AbsorbPointer(
    absorbing: disable,
    child: this,
  );
}