FPortal constructor

const FPortal({
  1. required OverlayPortalController controller,
  2. required WidgetBuilder portalBuilder,
  3. required Widget child,
  4. FPortalConstraints constraints = const FPortalConstraints(),
  5. AlignmentGeometry portalAnchor = Alignment.topCenter,
  6. AlignmentGeometry childAnchor = Alignment.bottomCenter,
  7. FPortalSpacing spacing = FPortalSpacing.zero,
  8. Offset shift(
    1. Size,
    2. FPortalChildBox,
    3. FPortalBox
    ) = FPortalShift.flip,
  9. Offset offset = Offset.zero,
  10. EdgeInsetsGeometry? viewInsets,
  11. 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,
});