goConfirmEvent method

Future<void> goConfirmEvent(
  1. JavaScriptMessage message
)

Implementation

Future<void> goConfirmEvent(JavaScriptMessage message) async {

  if (this.widget.onConfirm != null) {
    bool goTransactionConfirm = this.widget.onConfirm!(message.message);
    if (goTransactionConfirm) {
      widget.transactionConfirm();
    }
  } else if(this.widget.onConfirmAsync != null) {
    bool goTransactionConfirm = await this.widget.onConfirmAsync!(message.message);
    if (goTransactionConfirm) {
      widget.transactionConfirm();
    }
  }
}