WidgetMask constructor

const WidgetMask({
  1. Key? key,
  2. BlendMode blendMode = BlendMode.srcOver,
  3. bool childSaveLayer = false,
  4. required Widget mask,
  5. required Widget child,
})

Creates a widget which paints a mask widget into a save layer and blends that layer with its child.

Implementation

const WidgetMask({
  Key? key,
  this.blendMode = BlendMode.srcOver,
  this.childSaveLayer = false,
  required this.mask,
  required this.child,
}) : super(key: key);