Spotlight constructor

const Spotlight({
  1. Key? key,
  2. required Rect targetRect,
  3. double padding = 8.0,
  4. Color overlayColor = const Color.fromRGBO(0, 0, 0, 0.7),
  5. HighlightShape shape = HighlightShape.rounded,
  6. double borderRadius = 12.0,
  7. bool showPulse = false,
  8. VoidCallback? onTargetTap,
  9. 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,
});