SpotlightTarget.fromKey constructor
const
SpotlightTarget.fromKey(
- GlobalKey<
State< key, {StatefulWidget> > - EdgeInsets padding = const EdgeInsets.all(8),
- double borderRadius = 16,
- BorderRadius? customBorderRadius,
- Path? customPath,
- double? maxHeight,
- double? customWidth,
- 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,
});