RenderBackdropFilter constructor Null safety

RenderBackdropFilter(
  1. {RenderBox? child,
  2. required ImageFilter filter,
  3. BlendMode blendMode = BlendMode.srcOver}
)

Creates a backdrop filter.

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

Implementation

RenderBackdropFilter({ RenderBox? child, required ui.ImageFilter filter, BlendMode blendMode = BlendMode.srcOver })
  : assert(filter != null),
    assert(blendMode != null),
    _filter = filter,
    _blendMode = blendMode,
    super(child);