BackdropFilter constructor Null safety

const BackdropFilter(
  1. {Key? key,
  2. required ImageFilter filter,
  3. Widget? child,
  4. BlendMode blendMode = BlendMode.srcOver}
)

Creates a backdrop filter.

The filter argument must not be null. The blendMode argument will default to BlendMode.srcOver and must not be null if provided.

Implementation

const BackdropFilter({
  super.key,
  required this.filter,
  super.child,
  this.blendMode = BlendMode.srcOver,
}) : assert(filter != null);