DisableWidget constructor

const DisableWidget({
  1. Key? key,
  2. required Widget child,
  3. required bool disable,
  4. ColorFilter? colorFilter,
  5. bool? showColorFilter,
})

Implementation

const DisableWidget({
  super.key,
  required this.child,
  required this.disable,
  ColorFilter? colorFilter,
  bool? showColorFilter,
})  : _showColorFilter = showColorFilter ?? disable,
      _colorFilter = colorFilter ?? _greyscale;