CyberContentView constructor

const CyberContentView({
  1. Key? key,
  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. Duration transitionDuration = const Duration(milliseconds: 300),
  15. bool isScrollControlled = true,
  16. dynamic onClose(
    1. dynamic
    )?,
  17. dynamic onShow()?,
  18. dynamic onBeforeShow()?,
  19. dynamic onAfterClose(
    1. dynamic
    )?,
})

Implementation

const CyberContentView({
  super.key,
  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.transitionDuration = const Duration(milliseconds: 300),
  this.isScrollControlled = true,
  this.onClose,
  this.onShow,
  this.onBeforeShow,
  this.onAfterClose,
});