ImageFiltered constructor Null safety

const ImageFiltered(
  1. {Key? key,
  2. required ImageFilter imageFilter,
  3. Widget? child,
  4. bool enabled = true}
)

Creates a widget that applies an ImageFilter to its child.

The imageFilter must not be null.

Implementation

const ImageFiltered({
  super.key,
  required this.imageFilter,
  super.child,
  this.enabled = true,
}) : assert(imageFilter != null);