showCenterPopView<T> function

Future<T?> showCenterPopView<T>(
  1. BuildContext context,
  2. Widget widget, {
  3. bool barrierDismissible = false,
  4. void onClose(
    1. BuildContext
    )?,
})

Implementation

Future<T?> showCenterPopView<T>(BuildContext context, Widget widget,
    {bool barrierDismissible = false, void Function(BuildContext)? onClose}) async {
  return showDialog<T>(
    context: context,
    builder: (BuildContext context) {
      return CenterPopView(
        widget,
        barrierDismissible: barrierDismissible,
        onClose: onClose,
      );
    },
  );
}