CancelOKMessageAlertView constructor

CancelOKMessageAlertView({
  1. Key? key,
  2. double? heiht,
  3. String? title,
  4. String? message,
  5. RichText? richTextWidget,
  6. TextAlign? messageAlign,
  7. String cancelTitle = '取消',
  8. Function? cancelHandle,
  9. Function? closeHandle,
  10. String okTitle = '确认',
  11. Function? okHandle,
})

Implementation

CancelOKMessageAlertView({
  Key? key,
  double? heiht,
  String? title,
  String? message,
  RichText? richTextWidget,
  TextAlign? messageAlign,
  this.cancelTitle = '取消',
  this.cancelHandle,
  this.closeHandle,
  this.okTitle = '确认',
  this.okHandle,
})  : assert(title != null || message != null),
      // 不同同时为空
      super(
        key: key,
        height: heiht,
        title: title,
        message: message,
        messageAlign: messageAlign,
      );