CyberPopup constructor

CyberPopup({
  1. required BuildContext context,
  2. required Widget child,
  3. PopupPosition position = PopupPosition.center,
  4. PopupAnimation animation = PopupAnimation.slideAndFade,
  5. bool barrierDismissible = true,
  6. Color? barrierColor,
  7. EdgeInsets? margin,
  8. EdgeInsets? padding,
  9. double? width,
  10. double? height,
  11. BorderRadius? borderRadius,
  12. Color? backgroundColor,
  13. BoxShadow? boxShadow,
  14. dynamic onClose(
    1. dynamic
    )?,
  15. dynamic onShow()?,
  16. Duration transitionDuration = const Duration(milliseconds: 300),
  17. bool isScrollControlled = true,
})

Implementation

CyberPopup({
  required this.context,
  required this.child,
  this.position = PopupPosition.center,
  this.animation = PopupAnimation.slideAndFade,
  this.barrierDismissible = true,
  this.barrierColor,
  this.margin,
  this.padding,
  this.width,
  this.height,
  this.borderRadius,
  this.backgroundColor,
  this.boxShadow,
  this.onClose,
  this.onShow,
  this.transitionDuration = const Duration(milliseconds: 300),
  this.isScrollControlled = true,
});