showBasicDialog function

Future<bool?> showBasicDialog(
  1. BuildContext context, {
  2. required BasicDialogDelegate delegate,
  3. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(6)),
})

Implementation

Future<bool?> showBasicDialog(
  BuildContext context, {
  required BasicDialogDelegate delegate,
  BorderRadius borderRadius = const BorderRadius.all(Radius.circular(6)),
}) async {
  return showAdaptiveDialog<bool>(
    context: context,
    barrierDismissible: delegate.barrierDismissible,
    builder: (context) => BasicDialog(
      delegate: delegate,
      canPop: delegate.barrierDismissible,
      borderRadius: borderRadius,
    ),
  );
}