SpotlightDecoration constructor
const
SpotlightDecoration({
- Key? key,
- required Decoration decoration,
- double? backgroundIllumination,
- Clip clipBehavior = Clip.hardEdge,
- SpotlightStyle? spotlightStyle,
- 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);