stdYesNoAlert function

Future<Object?> stdYesNoAlert(
  1. String body,
  2. String title,
  3. void res(
    1. bool op
    ), {
  4. double yesPadding = 110,
  5. double width = 450,
  6. double height = 200,
  7. BuildContext? context,
})

Implementation

Future<Object?> stdYesNoAlert(
  final String body,
  final String title,
  final void Function(bool op) res, {
  final double yesPadding = 110,
  final double width = 450,
  final double height = 200,
  final BuildContext? context,
}) =>
    backdropDialog(
      YesNoAlertWidget(
        'modal8',
        body,
        title,
        width,
        height,
        'Sí',
        'No',
        yesPadding,
        () => res(true),
        () => res(false),
      ),
      context,
    );