PopoverAnchor constructor
const
PopoverAnchor({
- Key? key,
- required BuildContext anchorContext,
- Offset? position,
- required AlignmentGeometry alignment,
- CapturedThemes? themes,
- required WidgetBuilder builder,
- required Animation<
double> animation, - required AlignmentGeometry anchorAlignment,
- PopoverConstraint widthConstraint = PopoverConstraint.flexible,
- PopoverConstraint heightConstraint = PopoverConstraint.flexible,
- Size? anchorSize,
- VoidCallback? onTapOutside,
- Object? regionGroupId,
- Offset? offset,
- AlignmentGeometry? transitionAlignment,
- EdgeInsetsGeometry? margin,
- bool follow = true,
- bool consumeOutsideTaps = true,
- ValueChanged<
PopoverAnchorState> ? onTickFollow, - bool allowInvertHorizontal = true,
- bool allowInvertVertical = true,
- CapturedData? data,
- FutureVoidCallback? onClose,
- VoidCallback? onImmediateClose,
- PopoverFutureVoidCallback<
Object?> ? onCloseWithResult,
Implementation
const PopoverAnchor({
super.key,
required this.anchorContext,
this.position,
required this.alignment,
this.themes,
required this.builder,
required this.animation,
required this.anchorAlignment,
this.widthConstraint = PopoverConstraint.flexible,
this.heightConstraint = PopoverConstraint.flexible,
this.anchorSize,
// this.route,
this.onTapOutside,
this.regionGroupId,
this.offset,
this.transitionAlignment,
this.margin,
this.follow = true,
this.consumeOutsideTaps = true,
this.onTickFollow,
this.allowInvertHorizontal = true,
this.allowInvertVertical = true,
this.data,
this.onClose,
this.onImmediateClose,
this.onCloseWithResult,
});