createPopupWindow<T> function

KumiPopupWindow createPopupWindow<T>(
  1. BuildContext context, {
  2. Widget childFun(
    1. KumiPopupWindow popup
    )?,
  3. Size? childSize,
  4. KumiPopupGravity? 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. dynamic onShowStart(
    1. KumiPopupWindow popup
    )?,
  19. dynamic onShowFinish(
    1. KumiPopupWindow popup
    )?,
  20. dynamic onDismissStart(
    1. KumiPopupWindow popup
    )?,
  21. dynamic onDismissFinish(
    1. KumiPopupWindow popup
    )?,
  22. dynamic onClickOut(
    1. KumiPopupWindow popup
    )?,
  23. dynamic onClickBack(
    1. KumiPopupWindow popup
    )?,
})

Implementation

KumiPopupWindow createPopupWindow<T>(
  BuildContext context, {
  Widget Function(KumiPopupWindow popup)? childFun,
  Size? childSize,
  KumiPopupGravity? 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,
  Function(KumiPopupWindow popup)? onShowStart,
  Function(KumiPopupWindow popup)? onShowFinish,
  Function(KumiPopupWindow popup)? onDismissStart,
  Function(KumiPopupWindow popup)? onDismissFinish,
  Function(KumiPopupWindow popup)? onClickOut,
  Function(KumiPopupWindow popup)? onClickBack,
}) {
  return KumiPopupWindow(
    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,
    onShowStart: onShowStart,
    onShowFinish: onShowFinish,
    onDismissStart: onDismissStart,
    onDismissFinish: onDismissFinish,
    onClickOut: onClickOut,
    onClickBack: onClickBack,
  );
}