createPopupWindow<T> function

PopupWindow createPopupWindow<T>(
  1. BuildContext context, {
  2. Widget childFun(
    1. PopupWindow popup
    )?,
  3. Size? childSize,
  4. PopupGravity? gravity,
  5. bool? customAnimation,
  6. bool? customPop,
  7. bool? customPage,
  8. Color? bgColor,
  9. RenderBox? targetRenderBox,
  10. bool? underStatusBar,
  11. bool? underAppBar,
  12. bool? clickOutDismiss,
  13. bool? clickBackDismiss,
  14. double? offsetX,
  15. double? offsetY,
  16. Duration? duration,
  17. bool? needSafeDisplay,
  18. bool? useCustomWH,
  19. double? customWidth,
  20. double? customHeight,
  21. dynamic onShowStart(
    1. PopupWindow popup
    )?,
  22. dynamic onShowFinish(
    1. PopupWindow popup
    )?,
  23. dynamic onDismissStart(
    1. PopupWindow popup
    )?,
  24. dynamic onDismissFinish(
    1. PopupWindow popup
    )?,
  25. dynamic onClickOut(
    1. PopupWindow popup
    )?,
  26. dynamic onClickBack(
    1. PopupWindow popup
    )?,
})

Implementation

PopupWindow createPopupWindow<T>(
  BuildContext context, {
  Widget Function(PopupWindow popup)? childFun,
  Size? childSize,
  PopupGravity? gravity,
  bool? customAnimation,
  bool? customPop,
  bool? customPage,
  Color? bgColor,
  RenderBox? targetRenderBox,
  bool? underStatusBar,
  bool? underAppBar,
  bool? clickOutDismiss,
  bool? clickBackDismiss,
  double? offsetX,
  double? offsetY,
  Duration? duration,
  bool? needSafeDisplay,
  bool? useCustomWH,
  double? customWidth,
  double? customHeight,
  Function(PopupWindow popup)? onShowStart,
  Function(PopupWindow popup)? onShowFinish,
  Function(PopupWindow popup)? onDismissStart,
  Function(PopupWindow popup)? onDismissFinish,
  Function(PopupWindow popup)? onClickOut,
  Function(PopupWindow popup)? onClickBack,
}) {
  return PopupWindow(
    gravity: gravity,
    customAnimation: customAnimation,
    customPop: customPop,
    customPage: customPage,
    bgColor: bgColor,
    childFun: childFun,
    childSize: childSize,
    targetRenderBox: targetRenderBox,
    underStatusBar: underStatusBar,
    underAppBar: underAppBar,
    clickOutDismiss: clickOutDismiss,
    clickBackDismiss: clickBackDismiss,
    offsetX: offsetX,
    offsetY: offsetY,
    duration: duration,
    needSafeDisplay: needSafeDisplay,
    useCustomWH: useCustomWH,
    customWidth: customWidth,
    customHeight: customHeight,
    onShowStart: onShowStart,
    onShowFinish: onShowFinish,
    onDismissStart: onDismissStart,
    onDismissFinish: onDismissFinish,
    onClickOut: onClickOut,
    onClickBack: onClickBack,
  );
}