SpotlightTarget.fromKey constructor

const SpotlightTarget.fromKey(
  1. GlobalKey<State<StatefulWidget>> key, {
  2. EdgeInsets padding = const EdgeInsets.all(8),
  3. double borderRadius = 16,
  4. BorderRadius? customBorderRadius,
  5. Path? customPath,
  6. double? maxHeight,
  7. double? customWidth,
  8. bool allowTouchThrough = true,
})

Creates a spotlight target from a GlobalKey.

The padding adds space around the widget, borderRadius rounds the corners, and allowTouchThrough controls whether touches on the target pass through to the widget beneath.

Implementation

const SpotlightTarget.fromKey(
  this.key, {
  this.padding = const EdgeInsets.all(8),
  this.borderRadius = 16,
  this.customBorderRadius,
  this.customPath,
  this.maxHeight,
  this.customWidth,
  this.allowTouchThrough = true,
});