FPortal constructor

const FPortal({
  1. required OverlayPortalController controller,
  2. required WidgetBuilder portalBuilder,
  3. required Widget child,
  4. AlignmentGeometry portalAnchor = Alignment.topCenter,
  5. AlignmentGeometry childAnchor = Alignment.bottomCenter,
  6. Offset shift(
    1. Size,
    2. FPortalChildBox,
    3. FPortalBox
    ) = FPortalShift.flip,
  7. Offset offset = Offset.zero,
  8. Key? key,
})

Creates a portal.

Implementation

const FPortal({
  required this.controller,
  required this.portalBuilder,
  required this.child,
  this.portalAnchor = Alignment.topCenter,
  this.childAnchor = Alignment.bottomCenter,
  this.shift = FPortalShift.flip,
  this.offset = Offset.zero,
  super.key,
});