disabled method

Widget disabled({
  1. bool value = true,
  2. double opacity = 0.5,
})

Implementation

Widget disabled({bool value = true, double opacity = 0.5}) => AbsorbPointer(
  absorbing: value,
  child: Opacity(opacity: value ? opacity : 1.0, child: this),
);