BackdropFilter.grouped constructor

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

Creates a backdrop filter that groups itself with the nearest parent BackdropGroup.

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

This constructor will automatically look up the nearest BackdropGroup and will share the backdrop input with sibling and child BackdropFilter widgets.

Implementation

const BackdropFilter.grouped({
  super.key,
  required this.filter,
  super.child,
  this.blendMode = BlendMode.srcOver,
  this.enabled = true,
}) : backdropGroupKey = null,
     _useSharedKey = true;