FPortal constructor
const
FPortal({
- required OverlayPortalController controller,
- required WidgetBuilder portalBuilder,
- required Widget child,
- FPortalConstraints constraints = const FPortalConstraints(),
- AlignmentGeometry portalAnchor = Alignment.topCenter,
- AlignmentGeometry childAnchor = Alignment.bottomCenter,
- FPortalSpacing spacing = FPortalSpacing.zero,
- Offset shift() = FPortalShift.flip,
- Offset offset = Offset.zero,
- EdgeInsetsGeometry? viewInsets,
- Key? key,
Creates a portal.
Implementation
const FPortal({
required this.controller,
required this.portalBuilder,
required this.child,
this.constraints = const FPortalConstraints(),
this.portalAnchor = Alignment.topCenter,
this.childAnchor = Alignment.bottomCenter,
this.spacing = FPortalSpacing.zero,
this.shift = FPortalShift.flip,
this.offset = Offset.zero,
this.viewInsets,
super.key,
});