renderButtons method

  1. @override
Widget renderButtons()
override

Implementation

@override
Widget renderButtons() {
  return AlertdCancelOKSpacedButtons(
    cancelTitle: this.cancelTitle,
    cancelHandle: () {
      // print("点击Alert按钮:'取消'");
      if (this.cancelHandle != null) {
        this.cancelHandle!();
      }
    },
    okTitle: this.okTitle,
    okHandle: () {
      // print("点击Alert按钮:'确认'");
      if (this.okHandle != null) {
        this.okHandle!();
      }
    },
  );
}