showPIConfirmDialog function

Future<bool> showPIConfirmDialog({
  1. required BuildContext context,
})

Implementation

Future<bool> showPIConfirmDialog({
  required BuildContext context,
}) async {
  var res = await showPIDialog<bool>(
    context: context,
    title: '再次确认',
    confirmText: '删除',
    cancelText: '保留',
    content: '您确定要删除这条数据吗',
  );
  return res ?? false;
}