showWith<T> method

Future<T?> showWith<T>(
  1. BuildContext context, {
  2. PopupPosition? position,
  3. PopupAnimation? animation,
  4. bool? barrierDismissible,
})

Implementation

Future<T?> showWith<T>(
  BuildContext context, {
  PopupPosition? position,
  PopupAnimation? animation,
  bool? barrierDismissible,
}) async {
  final popup = CyberPopup(
    context: context,
    child: child,
    position: position ?? this.position,
    animation: animation ?? this.animation,
    barrierDismissible: barrierDismissible ?? this.barrierDismissible,
    barrierColor: barrierColor,
    margin: margin,
    padding: padding,
    width: width,
    height: height,
    borderRadius: borderRadius,
    backgroundColor: backgroundColor,
    boxShadow: boxShadow,
    transitionDuration: transitionDuration,
    isScrollControlled: isScrollControlled,
    onShow: onShow,
    onClose: onClose,
  );

  return await popup.show<T>();
}