confirm static method

Confirm confirm(
  1. BuildContext context
)

Implementation

static Confirm confirm(BuildContext context) {
  return (message,
      {title = '提示',
      theme = WeDialogTheme.ios,
      cancelButton = '取消',
      onCancel,
      confirmButton = '确认',
      onConfirm}) {
    _createAndroidLayout(context, message,
        title: title,
        theme: theme,
        type: 'confirm',
        cancelButton: cancelButton,
        onCancel: onCancel,
        confirmButton: confirmButton,
        onConfirm: onConfirm);
  };
}