showBottom<T> method

Future<T?> showBottom<T>(
  1. BuildContext context, {
  2. PopupAnimation animation = PopupAnimation.slideAndFade,
  3. bool barrierDismissible = true,
  4. Color? barrierColor,
  5. EdgeInsets? margin,
  6. EdgeInsets? padding,
  7. BorderRadius? borderRadius,
  8. Color? backgroundColor,
})

Show ContentView as bottom sheet Usage:

final result = await myContentView.showBottom(context);

Implementation

Future<T?> showBottom<T>(
  BuildContext context, {
  PopupAnimation animation = PopupAnimation.slideAndFade,
  bool barrierDismissible = true,
  Color? barrierColor,
  EdgeInsets? margin,
  EdgeInsets? padding,
  BorderRadius? borderRadius,
  Color? backgroundColor,
}) async {
  return await showPopup<T>(
    context,
    position: PopupPosition.bottom,
    animation: animation,
    barrierDismissible: barrierDismissible,
    barrierColor: barrierColor,
    margin: margin,
    padding: padding,
    borderRadius: borderRadius,
    backgroundColor: backgroundColor,
  );
}