Spotlight constructor
const
Spotlight({
- Key? key,
- required Rect targetRect,
- double padding = 8.0,
- Color overlayColor = const Color.fromRGBO(0, 0, 0, 0.7),
- HighlightShape shape = HighlightShape.rounded,
- double borderRadius = 12.0,
- bool showPulse = false,
- VoidCallback? onTargetTap,
- Color pulseColor = Colors.white,
Implementation
const Spotlight({
super.key,
required this.targetRect,
this.padding = 8.0,
this.overlayColor = const Color.fromRGBO(0, 0, 0, 0.7),
this.shape = HighlightShape.rounded,
this.borderRadius = 12.0,
this.showPulse = false,
this.onTargetTap,
this.pulseColor = Colors.white,
});