SpotlightDecoration constructor

const SpotlightDecoration({
  1. Key? key,
  2. required Decoration decoration,
  3. double? backgroundIllumination,
  4. Clip clipBehavior = Clip.hardEdge,
  5. SpotlightStyle? spotlightStyle,
  6. required Widget? child,
})

Creates a widget which paints a Spotlight decoration.

Implementation

const SpotlightDecoration({
  Key? key,
  required this.decoration,
  this.backgroundIllumination,
  this.clipBehavior = Clip.hardEdge,
  this.spotlightStyle,
  required this.child,
})  : assert(decoration is BoxDecoration || decoration is ShapeDecoration),
      assert(backgroundIllumination == null ||
          backgroundIllumination >= 0 && backgroundIllumination <= 1),
      super(key: key);