showBottom<T> method

Future<T?> showBottom<T>(
  1. BuildContext context
)

Implementation

Future<T?> showBottom<T>(BuildContext context) async {
  onBeforeShow?.call();

  final popup = CyberPopup(
    context: context,
    child: child,
    position: PopupPosition.bottom,
    animation: animation,
    barrierDismissible: barrierDismissible,
    barrierColor: barrierColor,
    margin: margin,
    padding: padding,
    borderRadius: borderRadius,
    backgroundColor: backgroundColor,
    boxShadow: boxShadow,
    transitionDuration: transitionDuration,
    isScrollControlled: isScrollControlled,
    onShow: onShow,
    onClose: (result) {
      onClose?.call(result);
      onAfterClose?.call(result);
    },
  );

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