goConfirmEvent method

Future<void> goConfirmEvent(
  1. JavaScriptMessage message
)

Implementation

Future<void> goConfirmEvent(JavaScriptMessage message) async {
  // if (onConfirm != null) {
  //   bool goTransactionConfirm = onConfirm!(message.message);
  //   if (goTransactionConfirm) {
  //     transactionConfirm();
  //   }
  // } else if(onConfirmAsync != null) {
  //   bool goTransactionConfirm = await onConfirmAsync!(message.message);
  //   if (goTransactionConfirm) {
  //     transactionConfirm();
  //   }
  // }
  if(onCallbackConfirm != null) {
    bool goTransactionConfirm = onCallbackConfirm!(message.message);
    if (goTransactionConfirm) {
      webViewProvider?.transactionConfirm();
    }
  } else if(onCallbackConfirmAsync != null) {
    bool goTransactionConfirm = await onCallbackConfirmAsync!(message.message);
    if (goTransactionConfirm) {
      webViewProvider?.transactionConfirm();
      // transactionConfirm();
    }
  }
}