FPortal constructor
const
FPortal({
- required Widget portalBuilder(),
- OverlayPortalController? controller,
- 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,
- Widget? barrier,
- ValueWidgetBuilder<
OverlayPortalController> builder = _builder, - Widget? child,
- Key? key,
Implementation
const FPortal({
required this.portalBuilder,
this.controller,
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,
this.barrier,
this.builder = _builder,
this.child,
super.key,
}) : assert(builder != _builder || child != null, 'Either builder or child must be provided');